WTH are there no Variable Entities in HA?

Sure ok, can’t do this with trigger template entities right now. Although technically this solution @TheFes made qualifies. No yaml changes are required to add new variables.

:white_check_mark: see my solution or fes’s, both do this.

As has been said multiple times in this thread trigger template entities absolutely survive a restart. Template entities without a trigger work as you describe, trigger template entities do not. Directly from the doc:

The state, including attributes, of trigger-based sensors and binary sensors is restored when Home Assistant is restarted. The state of other trigger-based template entities is not restored.

:white_check_mark: (for both mine and fes’s)

:white_check_mark: (for mine, fes’s would have an issue with this since it’s actually using attributes)

:man_shrugging: ok. Well I mostly wanted to make sure everyone was aware that all the technical requirements can be satisfied currently. Including the restore state one that keeps getting incorrectly assumed to be unsatisfiable.

2 Likes