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

Harmony Automation fails

$
0
0

@nicoske wrote:

Hi,

I recently upgraded to latest HASS version (running in docker).
I have an issue with an automation that doesn’t work anymore.
I’m using an harmony remote to power on/off a few tp-link switches based on the state of the remote control.

I have no idea why the action is not triggered anymore.
What I noiticed:

  • State of the remote.harmony entity is updated when I’m using the remote control:

2019-10-30 10:29:14 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=remote.harmony, old_state=<state remote.harmony=off; current_activity=PowerOff, friendly_name=harmony, supported_features=0 @ 2019-10-30T10:29:05.902707+01:00>, new_state=<state remote.harmony=on; current_activity=TV, friendly_name=harmony, supported_features=0 @ 2019-10-30T10:29:14.788002+01:00>>

  • I can trigger the “Power on TV” automation manually and automation works…

Any idea?
Here’s my automations.yaml

- alias: "Power on TV"
  hide_entity: false
  trigger:
    platform: state
    entity_id: remote.harmony
  condition:
    condition: state
    entity_id: remote.harmony
    state: 'on'
  action:
   - service: switch.turn_on
     entity_id: switch.TV
   - delay: '00:00:03'
   - service: remote.send_command
     entity_id: remote.harmony
     data:
      device: 53023039
      command: "PowerOn"
   - service: switch.turn_on
     entity_id: switch.DAC
   - delay: '00:00:05'
   - service: switch.turn_on
     entity_id: switch.Speakers
- alias: "Power off"
  hide_entity: false
  trigger:
    platform: state
    entity_id: remote.harmony
  condition:
    condition: state
    entity_id: remote.harmony
    state: 'off'
  action:
   - service: switch.turn_off
     entity_id: switch.Speakers
   - delay: '00:00:01'
   - service: switch.turn_off
     entity_id: switch.DAC
   - service: media_player.kodi_call_method
     data:
      entity_id: media_player.kodi
      method: System.Shutdown
   - delay: '00:00:10'
   - service: switch.turn_off
     entity_id: switch.TV

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95312

Trending Articles



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