Hello,
I am looking to add a button to my nextion screen (nspanel) so I wrote the code to create a switch in order to add it to my nextion
I don’t have any configuration errors when I add the entity to my switch dashboard and my template is grayed out and is it wrong or do I put a male plug?
thank you in advance for your future help
sorry for my English
- platform: template
switches:
thermosalononoff:
value_template: “{{ is_states(‘climate.salon’, ‘on’) }}”
friendly_name: “ThermosalonON/OFF”
turn_on:
- service: climate.turn_on
target:
entity_id: climate.salon
turn_off:
- service: climate.turn_off
target:
entity_id: climate.salon