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

Harmony doesnt work properly (input_select)

$
0
0

@henrikrox wrote:

In ui-lovelace.yaml

###Harmony###
      - type: entities
        title: Harmony
        show_header_toggle: false
        entities:
          - entity: input_select.harmony_hub
            name: Aktivitet
            icon: mdi:remote

in configuration.yaml

remote:
  - platform: harmony
    name: Harmony hub
    host: 192.168.1.9

# Input Select
input_select:
  harmony_hub:
    name: Harmony Activity
    options:
      - Velg aktivitet
      - TV
      - Shield
      - PowerOff
    initial: Velg aktivitet

in automations.yaml

- id: Remote Update Harmony Hub
  alias: 'Remote update Harmony Hub'
  trigger:
    platform: state
    entity_id: remote.harmony_hub
  action:
    service: input_select.select_option
    data_template:
      entity_id: input_select.harmony_hub
      option: >
        {%- set activity = state_attr('remote.harmony_hub','current_activity') %}

- id: Start Selected Activity
  alias: 'Remote start activity from input select living room tv'
  trigger:
    platform: state
    entity_id: input_select.harmony_hub
  action:
    service: script.turn_on
    entity_id: script.input_select_harmony
    data_template:
      activity: >
        {% if is_state("input_select.harmony_hub", "TV") %}
          26607850
        {% elif is_state("input_select.harmony_hub", "Shield") %}
          41482977
        {% elif is_state("input_select.harmony_hub", "PowerOff") %}
          -1
        {% else %}
        {% endif %}

Posts: 4

Participants: 1

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>