Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Automation trigger doesn't fire

$
0
0

@viktak wrote:

Hi,

I have the following code as part of my automations.yaml:

- alias: "IR commands"
  trigger:
    platform: state
    entity_id: switch.my_power
    to: "on"
  action:
      service: mqtt.publish
      data:
        topic: "cmnd"
        payload: '{"gyumolcs":"alma"}'

While all the other automation in the same file work properly, this one doesn’t get triggered. The entity id is correct, the state does become on when switched, the service works in the Developer tools/Services page.

I have just started using automation, so it is probably something very trivial, like a missing/extra space/etc.

Any help would be greatly appreciated!

v

Posts: 5

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>