I want to see when my children first turn the games consoles on each day and the data source I have is a media_player playing sensor. Does anyone have any suggestions on how I can determine via an automation or something else when the TV was first turned on each day?
At the moment I have a history graph on my UI and I have to hover over the bar to see when the status changes to on.
I have a Twilight lighting automation running as follows:
trigger:
- platform: state
entity_id: binary_sensor.daylight
from: 'on'
to: 'off'
condition:
- |-
{%- set last = state_attr(this.entity_id, 'last_triggered') %}
{{ last is not none and now().date() != last.date() }}
action:
- …