Recording a Devices state change to csv file for MatPlotLib
Posted: Fri Sep 06, 2019 6:15 am
I am revisiting an idea........
Can't remember if I have raised it before.
Is there a way to record a Device state change to a CSV that MatPlotLib could read to create a graph?
The things I am looking at are :-
Motion Sensors - On/Off
Heating - On/Off
Hot Water On/Off
The Hot Water is fairly easy, it tends to be one for over an hour when it comes on and as such would be picked up by a 15 minute sampling cycle.
The Motion Sensors and Heating tend to be on for shorter periods, Motion Sensors for a couple of minutes, the Heating for 5 minutes to tweak rooms to temp.
Any ideas or just ramp up a MatPlotLib cycle to every minute?
Can't remember if I have raised it before.
Is there a way to record a Device state change to a CSV that MatPlotLib could read to create a graph?
The things I am looking at are :-
Motion Sensors - On/Off
Heating - On/Off
Hot Water On/Off
The Hot Water is fairly easy, it tends to be one for over an hour when it comes on and as such would be picked up by a 15 minute sampling cycle.
The Motion Sensors and Heating tend to be on for shorter periods, Motion Sensors for a couple of minutes, the Heating for 5 minutes to tweak rooms to temp.
Any ideas or just ramp up a MatPlotLib cycle to every minute?