PowerStationMonitor/openhab2/rules/dc_load_history.rules

12 lines
383 B
Plaintext
Raw Normal View History

2022-02-09 09:55:09 +01:00
rule "Send datavalues from DC Load to history if input is powered on"
when
Time cron "*/10 * * ? * * *"
then
if (DC_Load_OnOff.state == ON) {
DC_Load_Voltage.persist("influxdb")
DC_Load_Current.persist("influxdb")
DC_Load_Power.persist("influxdb")
DC_Load_Watthours.persist("influxdb")
2022-02-15 11:10:51 +01:00
DC_Load_Amperehours.persist("influxdb")
2022-02-09 09:55:09 +01:00
}
end