I need some help with this error message. In the Log I get a warning about the entity_id option is deprecated and it points to the template.switch.
WARNING (MainThread) [homeassistant.components.template.switch] The 'entity_id' option is deprecated, please remove it from your configuration
I have four switch templates which are more or less identical. The switches are made so that they can work with the generic thermostat to control my floor heating. The switch is using a input_boolean to hold the switch status. So I suspect this is what the warning is about, but I am not sure as I can’t see anything wrong with it.
Does anyone has some idea of what I can do?
I am running on 0.118.3
The switch template looks like this;
- platform: template
switches:
microtemp_switch_peis:
friendly_name: "Microtemp switch peis på/av"
value_template: "{{ is_state('input_boolean.microtemp_peis_on_off', 'on') }}"
turn_on:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.microtemp_peis_on_off
- delay: '00:00:05'
- service: script.turn_on
data:
entity_id: script.microtemp_peis_on
- service: timer.start
entity_id: timer.microtemp_update
turn_off:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.microtemp_peis_on_off
- delay: '00:00:05'
- service: script.turn_on
data:
entity_id: script.microtemp_peis_off
- service: timer.start
entity_id: timer.microtemp_update
icon_template: >-
{% if is_state('input_boolean.microtemp_peis_on_off', 'on') %}
mdi:radiator
{% else %}
mdi:radiator-off
{% endif %}