This turned out to be very doable in the native LUA, please find snippet below :)
commandArray = {}
function timedifference (s)
year = string.sub(s, 1, 4)
month = string.sub(s, 6, 7)
day = string.sub(s, 9, 10)
hour = string.sub(s, 12, 13)
minutes = string.sub(s, 15, 16)
seconds = string.sub ...
Search found 4 matches
- Sunday 28 August 2016 22:56
- Forum: Utility
- Topic: Detecting meters that no longer update
- Replies: 7
- Views: 1670
- Saturday 27 August 2016 14:19
- Forum: Utility
- Topic: Detecting meters that no longer update
- Replies: 7
- Views: 1670
Re: Detecting meters that no longer update
Thanks for the reply. I just looked at it, and if I get it right, you are using lua, to pass openzwave values to php, which then starts influencing Domoticz .. Why not use the commandArray['SendNotification'] (for me) or commandArray['UpdateDevice']?
Anyway, thanks a bunch for pointing out Lua can ...
Anyway, thanks a bunch for pointing out Lua can ...
- Thursday 18 August 2016 23:32
- Forum: Utility
- Topic: Detecting meters that no longer update
- Replies: 7
- Views: 1670
Detecting meters that no longer update
Hi!
I have a meter (Everspring AN181, Z-Wave) that measures power in a shed. However, sometimes someone accidentally turns off the power to the shed, and stuff like a fridge doesn't like that.
Is there any way I can fire events on the latest update of a device, or the absence of a Z-Wave node from ...
I have a meter (Everspring AN181, Z-Wave) that measures power in a shed. However, sometimes someone accidentally turns off the power to the shed, and stuff like a fridge doesn't like that.
Is there any way I can fire events on the latest update of a device, or the absence of a Z-Wave node from ...
- Sunday 12 April 2015 15:12
- Forum: Others
- Topic: Measure device consumption cheap way?
- Replies: 57
- Views: 31338
Re: How to measure consumption of device in a cheap way?
I think Z-Wave time has just arrived for Mr. ThinkPad :oops:
I just bought those two Everspring AN1586 ... they are dirt cheap for what they are able to do!
Now only need to buy an Aeon labs stick.
I think Z-Wave is the easiest route to go. Couldn't find any other WiFi-smartplug with power ...
I just bought those two Everspring AN1586 ... they are dirt cheap for what they are able to do!
Now only need to buy an Aeon labs stick.
I think Z-Wave is the easiest route to go. Couldn't find any other WiFi-smartplug with power ...