OK, “New to HA”, Trying to learn automations for Insteon devices.
I have been working on this and I am just stuck. I have an Insteon open/close sensor and I am trying link it to a lamplink on/off dimmer module. I have finally gotten it to work (occasionally) When I initially start the automation by opening the sensor, the lamplink comes on, stays on and all is good. But when I close the sensor, wait a while and try the second or subsequent times either the lamplink doesn’t fire at all, or sometimes it comes on only to go back off after 10-15 seconds.
Here are my settings:
Home Assistant 2022.7.6
Supervisor 2022.07.0
Operating System 8.2
Frontend 20220707.1 - latest
It looks fine - apart from being generated by the UI - so it’s probably not the automation.
What does the trace say (Show Trace while editing the automation) and what is in the log? Another good place to look is in the history tab of the light and sensor - that will help you understand what’s going on.
I prefer the old automation style - I find it easier to read. This is the one that turns on my lights:
alias: Office Light Switch ON
initial_state: true
trigger:
platform: state
entity_id: binary_sensor.office_lights_switch
to: 'on'
action:
service: light.turn_on
data:
entity_id: light.room_light, light.floor_lamp
color_name: white
brightness: 255
id: df149804822940b3ac2039fc3b004788
Look at the history of light.lamplinc_dimmer_18_a1_da. It should show if an automation turned it on or off, or some other action. Do your lights have a cloud based app? Maybe it’s overriding.
I finally figured it out. Had to go into the All-Link Database and delete all the instances of both the light and the sensor as controllers and/or responders. Working great now.