Lamp Automation issue

I have searched and been unable to find a solution. I am slowly converting over my combination of Hubitat and ISY994i to Home Assistant.

Currently all of the ISY devices are exposed to HA through the ISY integration.

I have two zigbee lamps I am trying to tie to a Insteon Switch.

I had it working successfully for a couple of weeks, then it started with the behavior of one of the lamps (the left bar lamp) will not turn on with the insteon switch. The right lamp turns on properly.

When i look at the dashboard the left lamp shows on. When I toggle the lamp to off from the dashboard the lamp comes on briefly and then right back off.

I removed both lamps and the automation and re paired the lamps and re created the automation and it worked again for a few days then started with the same behavior.

I am sure I am missing something easy but I cannot for the life of me figure out what.

Here is the automation

alias: Turn On Bar Lamps
description: “”
trigger:

  • platform: state
    entity_id:
    • light.weight_room_switch_fixture
      from: “off”
      to: “on”
      condition: []
      action:
  • type: turn_on
    device_id: 4b44b849272e015906f8eebd6cdd1df5
    entity_id: light.bar_lamp_left_light
    domain: light
    brightness_pct: 100
  • type: turn_on
    device_id: ae1d271e4cae8e0cc158413e9824e436
    entity_id: light.bar_lamp_right_light
    domain: light
    brightness_pct: 100
    mode: single

If there is any other info I can provide to help please post it. Thanks.

Some additional information

When I turn the left lamp on and off from the dashboard it works correctly. Also when toggling the automation to off, the left lamp behaves the same as from the dashboard, the left lamp turns on then right back off.

Well I never really found a fix, but I was able to put in a workaround.

I added a off then on command to the automation on the left lamp only. It now works reliably if somewhat weird, with the flicker of the off on command. Hope this helps someone else.

alias: Turn On Bar Lamps
description: “”
trigger:

  • platform: state
    entity_id:
    • light.weight_room_switch_fixture
      from: “off”
      to: “on”
      condition: []
      action:
  • type: turn_on
    device_id: 4b44b849272e015906f8eebd6cdd1df5
    entity_id: light.bar_lamp_left_light
    domain: light
    brightness_pct: 100
  • type: turn_on
    device_id: ae1d271e4cae8e0cc158413e9824e436
    entity_id: light.bar_lamp_right_light
    domain: light
    brightness_pct: 100
  • type: turn_off
    device_id: 4b44b849272e015906f8eebd6cdd1df5
    entity_id: light.bar_lamp_left_light
    domain: light
  • type: turn_on
    device_id: 4b44b849272e015906f8eebd6cdd1df5
    entity_id: light.bar_lamp_left_light
    domain: light
    brightness_pct: 100
    mode: single

That ended up as also not being reliable. What does seem to work so far is to put the turn on command for both lamps into a scene and then use a automation from the insteon switch to activate the scene. Turning off the lamps works reliably with a direct automation.