Pushnotification when dishwasher/washing machine is ready?

Posts: 77
Joined: Thursday 17 March 2016 15:58
Target OS: Linux
Domoticz version:

Re: Pushnotification when dishwasher/washing machine is ready?

Post by Luigi87 » Monday 18 September 2017 18:50

jvdz wrote:
Sunday 17 September 2017 13:05
Looks like the device WattWasmachine doesn't contain the right values. What is the exact content shown in the devices tab for it?
EDIT: This statement expect the svalue to contain "Current usage;Total kWh usage":

Code: Select all

sWatt, sTotalkWh              = otherdevices_svalues['WattWasmachine']:match("([^;]+);([^;]+)")
Likely your device only has the current usage?
If so just modify the script to:

Code: Select all

--sWatt, sTotalkWh              = otherdevices_svalues['WattWasmachine']:match("([^;]+);([^;]+)")
--washer_usage                  = tonumber(sWatt)
washer_usage                  = tonumber(otherdevices_svalues['WattWasmachine'])
This did the trick :D it works now.
Now only to tweek it to the right value's

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests