Deze methode is stabiel, onderhoudsvrij en werkt zonder custom componenten.<\/p>\n
\u00a0<\/div>\n
1. Harmony JSON exporteren<\/h2>\n Ga in Home Assistant naar:<\/p>\n
Instellingen \u2192 Integraties \u2192 Harmony Hub \u2192 Download config<\/strong><\/p>\nSla het bestand op in:<\/p>\n
\n
\n
Code
<\/button><\/div>\n\u00a0<\/div>\n<\/div>\n
\n
\n
config\/harmony_5872655.conf\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n\u00a0<\/div>\n
2. Helpers aanmaken per apparaat<\/h2>\n Maak in Home Assistant per Harmony\u2011device een input_select<\/code> helper aan. Laat de opties leeg \u2014 die vullen we automatisch.<\/p>\nVoorbeeld helpers:<\/p>\n
\n
\n
Code
<\/button><\/div>\n\u00a0<\/div>\n<\/div>\n
\n
\n
input_select.harmony_commands_av_serre_2\ninput_select.harmony_commands_av_woonkamer_1\ninput_select.harmony_commands_blue_ray_speler\ninput_select.harmony_commands_dvr_formuler\ninput_select.harmony_commands_dvr_vu\ninput_select.harmony_commands_eetkamer_3\ninput_select.harmony_commands_lg_70up7006lb\ninput_select.harmony_commands_marmitek_av_switch\ninput_select.harmony_commands_muziekserver_avedio_links\ninput_select.harmony_commands_sat_dm8000\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n\u00a0<\/div>\n
3. Automation: Helpers automatisch vullen met commando\u2019s<\/h2>\n Deze automation leest je Harmony\u2011config in en vult alle helpers met de juiste commando\u2019s.<\/p>\n
\n
\n
yaml
<\/button><\/div>\n\u00a0<\/div>\n<\/div>\n
\n
\n
alias: Harmony \u2013 Fill Per\u2011Device Helpers triggers: - event: start trigger: homeassistant - minutes: \/10 trigger: time_pattern actions: - action: file.read_file data: file_name: harmony_5872655.conf file_encoding: JSON response_variable: harmony_data - variables: harmony: \"{{ harmony_data.data }}\" - action: input_select.set_options data: entity_id: input_select.harmony_commands_av_serre_2 options: | {{ [''] + harmony.Devices['AV-Serre 2'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_av_woonkamer_1 options: | {{ [''] + harmony.Devices['AV-Woonkamer 1'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_blue_ray_speler options: | {{ [''] + harmony.Devices['Blue-Ray speler'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_dvr_formuler options: | {{ [''] + harmony.Devices['DVR Formuler'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_dvr_vu options: | {{ [''] + harmony.Devices['DVR Vu+'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_eetkamer_3 options: | {{ [''] + harmony.Devices['Eetkamer 3'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_lg_70up7006lb options: | {{ [''] + harmony.Devices['LG 70UP7006LB'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_marmitek_av_switch options: | {{ [''] + harmony.Devices['Marmitek AV Switch'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_muziekserver_avedio_links options: | {{ [''] + harmony.Devices['Muziekserver Avedio Links'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_northern_lichtbediening options: > {{ [''] + harmony.Devices['Northern International Lichtbediening'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_sat_dm8000 options: | {{ [''] + harmony.Devices['SAT DM8000'].commands }} - action: input_select.set_options data: entity_id: input_select.harmony_commands_homeseer options: | {{ [''] + harmony.Devices['homeseer'].commands }} \n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n\u00a0<\/div>\n
4. E\u00e9n automation die ALLE commando\u2019s verstuurt<\/h2>\n Zodra je een commando kiest in een dropdown, wordt het direct uitgevoerd.<\/p>\n
\n
\n
yaml
<\/button><\/div>\n\u00a0<\/div>\n<\/div>\n
\n
\n
alias: Harmony \u2013 Send Command From Any Device Helper triggers: - entity_id: - input_select.harmony_commands_av_serre_2 - input_select.harmony_commands_av_woonkamer_1 - input_select.harmony_commands_blue_ray_speler - input_select.harmony_commands_dvr_formuler - input_select.harmony_commands_dvr_vu - input_select.harmony_commands_eetkamer_3 - input_select.harmony_commands_lg_70up7006lb - input_select.harmony_commands_marmitek_av_switch - input_select.harmony_commands_muziekserver_avedio_links - input_select.harmony_commands_sat_dm8000 trigger: state actions: - action: file.read_file data: file_name: harmony_5872655.conf file_encoding: JSON response_variable: harmony_data - variables: harmony: \"{{ harmony_data.data }}\" device_id: \"{{ harmony.Devices[device_name].id }}\" - target: entity_id: remote.huiskamer data: device: \"{{ device_id }}\" command: \"{{ command }}\" action: remote.send_command - action: input_select.select_option data: entity_id: \"{{ changed_helper }}\" option: \"\" variables: changed_helper: \"{{ trigger.entity_id }}\" device_name: | {% set map = { 'input_select.harmony_commands_av_serre_2': 'AV-Serre 2', 'input_select.harmony_commands_av_woonkamer_1': 'AV-Woonkamer 1', 'input_select.harmony_commands_blue_ray_speler': 'Blue-Ray speler', 'input_select.harmony_commands_dvr_formuler': 'DVR Formuler', 'input_select.harmony_commands_dvr_vu': 'DVR Vu+', 'input_select.harmony_commands_eetkamer_3': 'Eetkamer 3', 'input_select.harmony_commands_lg_70up7006lb': 'LG 70UP7006LB', 'input_select.harmony_commands_marmitek_av_switch': 'Marmitek AV Switch', 'input_select.harmony_commands_muziekserver_avedio_links': 'Muziekserver Avedio Links', 'input_select.harmony_commands_sat_dm8000': 'SAT DM8000' } %} {{ map[changed_helper] }} command: \"{{ states(changed_helper) }}\" \n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n