I’ve just bought the Ikea Tradfri PIR with light and I was wondering how I can set up a counter which records the number of times the light is triggered. I can get the light to come on and go off at various times of day using HASS on my raspberry pi, but I haven’t achieved reading the state of the light or a counter.
Help / examples appreciated
Use the recorder component to save state changes and then use a statistics sensor for the counter.