core: Automation in UI throws: Message malformed: Integration ‘’ not found`

The problem

Automations throws different errors when using UI.

Automation in UI throws: Message malformed: Integration not found

Tried with empty automation.yaml and new core.restore.state file, getting

Error processing the query: Unable to parse utterance. when trying to create a new automation.

Environment

arch | x86_64 dev | false docker | true hassio | true os_name | Linux os_version | 4.15.0-91-generic python_version | 3.7.7 timezone | Europe/Oslo version | 0.107.5 virtualenv | false

  • Home Assistant release with the issue: 0.107.5
  • Last working Home Assistant release (if known): ?
  • Operating environment (Hass.io/Docker/Windows/etc.): Hassio/Docker/Ubuntu
  • Integration causing this issue: Automation
  • Link to integration documentation on our website:

Problem-relevant automations.yaml


- alias: Sol ned
  trigger:
  - platform: sun
    event: sunset
    offset: -00:20:00
  action:
  - service: homeassistant.turn_on
    entity_id: light.trapp_ute,light.bod_ute
    data:
      brightness: 70
  - service: homeassistant.turn_on
    entity_id: light.hue_white_lamp_1
    data:
      brightness: 150
  id: 2ee36c3f5c5f49f28e8b77b7f2e32913
- alias: Sol opp
  trigger:
  - platform: sun
    event: sunrise
  action:
  - service: homeassistant.turn_off
    entity_id: light.trapp_ute
  - service: homeassistant.turn_off
    entity_id: light.bod_ute
  - service: homeassistant.turn_off
    entity_id: light.hue_white_lamp_1
  id: bbabba7a32ae4ff481f30116b4bcb5d8
- alias: Bod ute av
  trigger:
  - platform: time
    at: '22:30'
  action:
  - service: homeassistant.turn_off
    entity_id: light.bod_ute
  id: 0bd485caeb9c4692a911c02d935590fe
- alias: Lys Av
  trigger:
  - platform: time
    at: '23:30'
  action:
  - service: homeassistant.turn_off
    entity_id: light.stue,light.kjokken,light.lampe_mellomgang
  - service: homeassistant.turn_off
    entity_id: switch.stor_lampe_stue,switch.stue_lampe_stor_vindu
  id: 9c1d5ad60fa149a08a0d1cd7dce942ef
- alias: Lys <removed>
  trigger:
  - platform: state
    entity_id: device_tracker.<removed>_ios
    from: not_home
    to: home
  - platform: sun
    event: sunset
  condition:
    condition: and
    conditions:
    - condition: sun
      after: sunset
      after_offset: -00:20:00
    - condition: time
      before: '22:00:00'
    - condition: state
      entity_id: device_tracker.<removed>_ios
      state: home
  action:
  - service: homeassistant.turn_on
    entity_id: switch.stor_lampe_stue,switch.stue_lampe_stor_vindu
  - service: homeassistant.turn_on
    entity_id: light.stue,light.kjokken
    data:
      brightness: 115
  - service: homeassistant.turn_on
    entity_id: light.lampe_mellomgang
    data:
      brightness: 70
  - service: homeassistant.turn_on
    entity_id: light.ute
    data:
      brightness: 30
  id: 5178ba18fed5419793f22fd18af7525e
- alias: Lys <removed>
  trigger:
  - platform: state
    entity_id: device_tracker.<removed>_ios
    from: not_home
    to: home
  - platform: sun
    event: sunset
  condition:
    condition: and
    conditions:
    - condition: sun
      after: sunset
      after_offset: -00:20:00
    - condition: time
      before: '22:00:00'
    - condition: state
      entity_id: device_tracker.<removed>_ios
      state: home
  action:
  - service: homeassistant.turn_on
    entity_id: switch.stor_lampe_stue,switch.stue_lampe_stor_vindu
  - service: homeassistant.turn_on
    entity_id: light.stue,light.kjokken
    data:
      brightness: 115
  - service: homeassistant.turn_on
    entity_id: light.lampe_mellomgang
    data:
      brightness: 70
  - service: homeassistant.turn_on
    entity_id: light.ute
    data:
      brightness: 30
  id: a3c16d3fd45147b996d60173ced3235b
- alias: Lys <removed>
  trigger:
  - platform: state
    entity_id: device_tracker.<removed>_android
    from: not_home
    to: home
  - platform: sun
    event: sunset
  condition:
    condition: and
    conditions:
    - condition: sun
      after: sunset
      after_offset: -00:20:00
    - condition: time
      before: '22:00:00'
    - condition: state
      entity_id: device_tracker.<removed>_android
      state: home
  action:
  - service: homeassistant.turn_on
    entity_id: switch.stor_lampe_stue,switch.stue_lampe_stor_vindu
  - service: homeassistant.turn_on
    entity_id: light.stue,light.kjokken
    data:
      brightness: 115
  - service: homeassistant.turn_on
    entity_id: light.lampe_mellomgang
    data:
      brightness: 70
  - service: homeassistant.turn_on
    entity_id: light.ute
    data:
      brightness: 30
  id: 46462ea53161463ea1fa57ec733589f2
- alias: Lys <removed>
  trigger:
  - platform: state
    entity_id: device_tracker<removed>_ios
    from: not_home
    to: home
  - platform: sun
    event: sunset
  condition:
    condition: and
    conditions:
    - condition: sun
      after: sunset
      after_offset: -00:20:00
    - condition: time
      before: '22:00:00'
    - condition: state
      entity_id: device_tracker.<removed>_ios
      state: home
  action:
  - service: homeassistant.turn_on
    entity_id: switch.stor_lampe_stue,switch.stue_lampe_stor_vindu
  - service: homeassistant.turn_on
    entity_id: light.stue,light.kjokken
    data:
      brightness: 115
  - service: homeassistant.turn_on
    entity_id: light.lampe_mellomgang
    data:
      brightness: 70
  - service: homeassistant.turn_on
    entity_id: light.ute
    data:
      brightness: 30
  id: 25e7d43b0b704184bb74dad42397fcba
- id: '1584957937348'
  alias: Varmeovn kjellerstue on
  description: ''
  trigger:
  - entity_id: sensor.netatmo_hoyby_inne_temperature
    platform: state
  condition:
  - below: '19'
    condition: numeric_state
    entity_id: sensor.netatmo_hoyby_inne_temperature
  - after: 09:00
    before: '21:00'
    condition: time
  action:
  - device_id: e53f47a963e44006bd7309abf0f319d5
    domain: light
    entity_id: light.hue_smart_plug_1
    type: turn_on
- id: '1584958827766'
  alias: Varmeovn kjeller off
  description: ''
  trigger:
  - entity_id: sensor.netatmo_hoyby_inne_temperature
    platform: state
  condition:
  - above: '19.5'
    condition: numeric_state
    entity_id: sensor.netatmo_hoyby_inne_temperature
  action:
  - device_id: e53f47a963e44006bd7309abf0f319d5
    domain: light
    entity_id: light.hue_smart_plug_1
    type: turn_off


Also happends with empty automations.yaml file.

Traceback/Error logs

No traceback found.
Error Message malformed: Integration ‘’ not found

Additional information

Example is from user fermulator, that also has the problem. The predefined automations work.

Example, I created this automation:

Copy to clipboard

  • id: ‘1584962954826’ alias: Energy Savings (TOU off-peak) description: Only ON during off-peak (7PM -> 7AM) trigger:
    • at: 07:00:00 platform: time condition: [] action:
    • scene: scene.energy_savings_tou_off_peak based off this scene:

Copy to clipboard

  • id: ‘1584962996368’ name: Energy Savings (TOU off-peak) entities: {} That all worked.

However trying to create a similar one in the UI same naming chars etc, and it doesn’t work!

Copy to clipboard Name: Energy Savings (TOU winter on-peak morning) Desc: OFF (7AM -> 11AM) Active Scene: scene.energy_savings_tou_on_peak_winter save button doesn’t work, then it says at the top in red:

Message malformed: Integration ‘’ not found

auto1 auto2

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 30 (1 by maintainers)

Most upvoted comments

(go away bot)

This issue is infuriating but obvious once you know what’s going on!

The UI automatically adds a ‘Trigger’ and an ‘Action’ section to all new Automations, if you’re not using a trigger, you need to delete it.

i was just getting this same issue when attempting to add an automation.

in my case, it was because the empty “condition” was being sent. after deleting the empty default condition it let me save.

here is what was being sent upon clicking save:

{
   "description" : "",
   "alias" : "lamp (refresh)",
   "condition" : [
      {
         "device_id" : "",
         "entity_id" : "",
         "domain" : "",
         "condition" : "device"
      }
   ],
   "action" : [
      {
         "service" : "zwave.refresh_entity",
         "entity_id" : "zwave.aeon_labs_dsc06106_smart_energy_switch_3",
         "data" : {}
      }
   ],
   "trigger" : [
      {
         "domain" : "switch",
         "entity_id" : "switch.aeon_labs_dsc06106_smart_energy_switch_switch",
         "device_id" : "b8ba24d3847b4f0e98b6a915ece6f761",
         "type" : "turned_on",
         "platform" : "device"
      },
      {
         "domain" : "switch",
         "device_id" : "b8ba24d3847b4f0e98b6a915ece6f761",
         "type" : "turned_off",
         "platform" : "device",
         "entity_id" : "switch.aeon_labs_dsc06106_smart_energy_switch_switch"
      }
   ]
}

and the response:

{"message": "Message malformed: Integration '' not found"}

not sure if this is the same things the other people have mentioned, but maybe it will help someone.

Can someone smarter than me make a PR to provide a better message in case of invalid sections, and/or to delete empty sections before saving?

On Feb 20, 2021, at 4:38 PM, pat1300 notifications@github.com wrote:

Check if you correctly defined a trigger before saving

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

For me, it was just an extra section in the UI - Instead of clicking “Save” I clicked “Add” which added another section (to either Actions or Conditions, I don’t recall) and that threw the rather obtuse error.

I recently upgraded from 105 to 107, also hitting this issue.