Hello,
i’ve trying to get a template switch working with a homematic variable but i get a error, am i getting something wrong?
Template Switch:
- platform: template
switches:
alarmanlage:
friendly_name: Alarmanlage
value_template: "{{ is_state('binary_sensor.alarmanlage_var', 'on') }}"
turn_on:
service: homematic.set_variable_value
data:
entity_id: homemeatic.ccu2
name: Alarmanlage
value: 1
turn_off:
service: homematic.set_variable_value
data:
entity_id: homemeatic.ccu2
name: Alarmanlage
value: 0
Log:
e[32m2018-02-05 15:22:51 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homeassistant, service=turn_on, service_data=entity_id=switch.alarmanlage, service_call_id=22691986098440-10>e[0m
e[32m2018-02-05 15:22:51 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=switch, service=turn_on, service_data=entity_id=['switch.alarmanlage'], service_call_id=22691986098440-11>e[0m
e[32m2018-02-05 15:22:51 INFO (MainThread) [homeassistant.helpers.script] Running scripte[0m
e[32m2018-02-05 15:22:51 INFO (MainThread) [homeassistant.helpers.script] Executing step call servicee[0m
e[32m2018-02-05 15:22:51 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=homematic, service=set_variable_value, service_data=entity_id=homemeatic.ccu2, name=Alarmanlage, value=1, service_call_id=22691986098440-12>e[0m
e[31m2018-02-05 15:22:51 ERROR (SyncWorker_68) [homeassistant.components.homematic] No HomeMatic hubs availablee[0m