I have Sonoff Door sensors (The kind that only gives “Open” state) hooked to a Sonoff RF bridge.
I have 4 doors connected to this RF bridge.
This is all working well with the AlexIT Sonoff repo and I have a card displaying the last state received.
What I would like to do is to have a card in Lovelace displaying a history of all the doors triggered with the date and time stamp.
I had a look at the state_attr “name:” which gives me the name of the door that was triggered but I am not sure how to go about displaying a history of let’s say the last 20 triggers with the date and time stamps.
Is anyone able to assist with something like this?
Currently, this is my config:
sonoff: username: [email protected] password: ************ force_update: [temperature, power] scan_interval: '00:05:00' # (optional) default 5 minutes sensors: [temperature, humidity, power, current, voltage] sonoff: rfbridge: Door sensor: name: Door Sensor with one state # optional, you can change sensor name device_class: door timeout: 5
Under Developer Tools I have the sonoff.remote with Attributes:
type manufacturer: Sonoff model: RF_Bridge sw_version: PSF-BRA-GL v3.4.1 command: 1 ts: 2020-07-17T14:33:50.000Z name: Front Door friendly_name: Door Sensor supported_features: 1
So I would imagine that I would need the “name:” and “ts:” attribute to get this to work but have no idea from here.
Appreciate the help guys!