Working: Gasmetersensor based on Kaku doorsensor (15 euros)

Kubra
Posts: 23
Joined: Wednesday 01 April 2015 22:06
Target OS: NAS (Synology & others)
Domoticz version: V3.5864
Location: Hollanda

Re: Working: Gasmetersensor based on Kaku doorsensor (15 euros)

Post by Kubra » Saturday 02 April 2016 12:29

Set local switchName = "Contacteur Gaz" to local switchName = "gaz"?

Polygontrauma
Posts: 7
Joined: Sunday 28 August 2016 12:48
Target OS: -
Domoticz version:
Contact:

Re: Working: Gasmetersensor based on Kaku doorsensor (15 euros)

Post by Polygontrauma » Saturday 01 October 2016 17:47

I followed your instructions exactly, but it won't work. Switch itself does work, counter and switch are named as in youre example, and I've adapted the idx and the file path in the script.
Then I pasted the following line after "On Action" and "Off Action" of the door switch: script://home/pi/domoticz/scripts/lua/script_device_gaspuls.lua
I get no errors, can watch the switch turn on/off, but the counter still says 0.
What am I doing wrong?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest