12 lines
383 B
Plaintext
12 lines
383 B
Plaintext
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")
|
|
DC_Load_Amperehours.persist("influxdb")
|
|
}
|
|
end |