I have a load of template sensors that need to have their entity_id
added following the 0.81 upgrade. This is largely down to my garden irrigation system which has two cycles, each with five zones so generating many tens of templated sensors which are used in the front end display.
It is intuitively obvious that where possible using the new homeassistant.update_entity
service would be more efficient than including the entity_id
- Is this correct and if so is the benefit significant enough to think about?
Also: I thought I should just check; here is an example of one of my template senors. The input_booloean
is set by the user, the input_datetime
is set by an automation/script. Am I right in thinking that I need to include both of these as entity_ids
in the template?
This is a HUGE breaking change for me. luckily I have until next summer to sort it all out!!!
sensors:
cycle1_next_run_time:
friendly_name: "Next scheduled run time"
value_template: >
{% if is_state('input_boolean.cycle1_enable', 'on') %}
{{ (as_timestamp(states.input_datetime.cycle1_next_run_time.state)) | timestamp_custom("%a %d %h at %H:%M") }}
{% else %}
None
{% endif %}
icon_template: mdi:clock-start