Since some days I have a problem with my DSL connection.
(And it will take a while to be solved, because the landlord needs to take action…)
The Fritz integration gives a binary_sensor.fritz_box_7590_connection-sensor.
Does someone have an idea how…
to count the state changes per day (or better per 24h starting at 2 o’clock) when the daily reconnect happens?
Tried some and it seems to work - at least a bit.
Today (without a recognized change) my counter stays at zero (although there was a reconnect at 10 o’clock) and after a (soft) HA restart switched to one.
My purpose is to count the DSL reconnects my monitoring binary_sensor.fritz_box_7590_connection.
Is this the best sensor to count DSL reconnects?
What would be the best to start counting after the normal nightly disconnect?
I have similar problem so I jumped into this topic.
I have a binary sensor binary_sensor.buderus_kessel_unter_betrieb that tracks when and for how long my Buderus furnace is operational meaning using gas fuel. I want to create sensor that will track this binanry sensor and count how long furnace was running in a day. Tried various combinations, even tried to use chatgpt to get this sensor working but nothing seems to work. So I get back to history stats from documentation. This is my code from sensors.yaml
- platform: history_stats
name: Buderus On Time Today
entity_id: binary_sensor.buderus_kessel_unter_betrieb
state: "on"
type: time
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
I want that sensor_buderus_on_time_today calcualte how log is binanry sensor on for a day. Day is time from 00:00:00 to 23:59:59.
I created another sensor that will do estimate on gas usage like this