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

Created on 24 Mar 2020  ·  13Comments  ·  Source: home-assistant/core

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

```Can the problem be a mix of UI configured and old yaml configured ? Here is whole 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
    trigger:

    • platform: state

      entity_id: device_tracker._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._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
    trigger:

    • platform: state

      entity_id: device_tracker._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._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
    trigger:

    • platform: state

      entity_id: device_tracker._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._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
    trigger:

    • platform: state

      entity_id: device_tracker_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._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
<!--
  If you come across any trace or error logs, please provide them.
-->



```txt
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

automation

Most helpful comment

(go away bot)

All 13 comments

Hey there @home-assistant/core, mind taking a look at this issue as its been labeled with a integration (automation) you are listed as a codeowner for? Thanks!

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

HA 0.107.7 , Python virtual environment, same issue.
Restart helped.
Unfortunately, immediately rebooted, did not guess to collect the details...

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.

confirmed, the recent UI creations created like this in the yaml

- id: '1582060426859'
  alias: Energy Savings (blah)
  description: snip
  trigger:
  - at: '20:30:00'
    platform: time
  - at: 07:00:00
    platform: time
  condition: []                            <<<<<<<<<<<<<<<<< this?
  action:
  - entity_id: switch.leviton_dzpa1_2bw_plug_in_outlet_switch
    service: switch.toggle

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

(go away bot)

Still present in 0.113.3. Create automation, try to submit with an empty trigger or condition, the error appears.

I am hitting it in 0.114.0 as well if I try to create an automation with an empty action.

The same happens with a fresh install of 0.114.1 on a Raspberry Pi 4 Model B (even with an empty automation action).

Happened to me in 0.117.0

I can trigger this error message (Message malformed: Integration ‘’ not found`) if i add an empty action and try to save the automation
image

Hello, I can trigger this error message if I try to create a new automation just after disabling one.

Was this page helpful?
0 / 5 - 0 ratings