I am stuck with a strange issue with my harmony integration into home assistant.
When I click on my activity on harmony remote it works fine. I am trying to get an integration working, but can’t get it right.
I have a wifi wall switch connected to home assistant which turns on and off the TV/Entertainment system socket on the wall (outside of harmony). So I made the following automation to turn on the wall switch when harmony turns on or off.
alias: Harmony On Off
description: ""
trigger:
- platform: device
type: turned_off
device_id: 212d139f807fe8e167cf4d788a4b4825
entity_id: 0794863e4c7fecfeb645c8e164ba720f
domain: remote
for:
hours: 0
minutes: 1
seconds: 0
id: harmony-off
- platform: device
type: turned_on
device_id: 212d139f807fe8e167cf4d788a4b4825
entity_id: 0794863e4c7fecfeb645c8e164ba720f
domain: remote
id: harmony-on
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- harmony-off
sequence:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.subwoofer_switch
- switch.tv
- conditions:
- condition: trigger
id:
- harmony-on
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.tv
data: {}
mode: single
In my harmony remote I tried the below.
- Added additional wait of 20 seconds before my TV and Receiver turn on. This didn’t work as the hub was immediately issuing the turn on commands and not honoring the delay. My receiver still starts fine, but the TV never turns on.
- Added delay to the power commands in both TV and Receiver. Same results.
Anyone have a similar setup? How can I get the wall switch to turn on when I start an activity and then wait a few seconds to issues remaining commands in harmony?