Search found 10 matches

by Daiii
Monday 22 January 2024 17:55
Forum: LUA
Topic: How to cancel queued commandArray{} events
Replies: 4
Views: 3198

Re: How to cancel queued commandArray{} events

Thank you, everyone, for your replies. I am not using DzVents, but your combined comments led me to inspect MQTTAutoDiscover::SendSwitchCommand for clues, and it turns out that a variation on Kedi's suggestion sortof accomplishes what I'm after: commandArray[ 'MyDevice' ] = "Stop" I'd tried sending ...
by Daiii
Monday 22 January 2024 9:23
Forum: LUA
Topic: How to cancel queued commandArray{} events
Replies: 4
Views: 3198

How to cancel queued commandArray{} events

I'm porting over some old LUA scripts from seven years ago, and am wondering if something has changed in the method for cancelling a queued commandArray{} event. Suppose we issue: commandArray[ 'MyDevice' ] = "On AFTER 30" and then, a little later, we wish to remove that queued request that hasn't ...
by Daiii
Wednesday 17 January 2024 22:10
Forum: Other questions and discussions
Topic: FloorPlan
Replies: 4
Views: 6839

Re: FloorPlan

I've been curious about this too, and your question, though two months old, inspired looking into it. I hope this reply might still be useful. Yes, Floorplan background images are now stored in the domoticz.db database. They are in a table called "Floorplans" having entries "Name" (the name you gave ...
by Daiii
Tuesday 16 January 2024 3:21
Forum: Other questions and discussions
Topic: Domoticz handling of multiple identical events
Replies: 1
Views: 6266

Re: Domoticz handling of multiple identical events

Thank you to everyone who took the time to read my original post. I've made some progress the past ten days and have both a workaround and a possible code enhancement to offer. The suppression of successive identical switch levels is done in this code from hardware/MQTTAutoDiscover.cpp 3476 // check ...
by Daiii
Friday 05 January 2024 20:51
Forum: Other questions and discussions
Topic: Domoticz handling of multiple identical events
Replies: 1
Views: 6266

Domoticz handling of multiple identical events

Hi, I'm running Domoticz 2024.1 on Raspberry PI using Mosquitto MQTT broker and ZWave-JS-UI interface to Aeotec Gen5 stick. Latest stable versions of everything, and the system is working great! My question has to do with Domoticz handling of multiple identical events. This comes up because I have a ...
by Daiii
Saturday 30 September 2017 5:30
Forum: Z-Wave
Topic: Anyone successful with Cooper RFWC5 Scene Controller?
Replies: 0
Views: 504

Anyone successful with Cooper RFWC5 Scene Controller?

I've been trying without success to setup a Cooper RFWC5 Scene Controller on a Domoticz 3.8446, OZW 1.4-2701, Aeotec Gen5 Z-Stick, Fedora OS. The device gets included fine, showing up as Cooper Unknown: type=574d, id=0000. OZW does not appear to have manufacturer or device info in its config ...
by Daiii
Tuesday 15 August 2017 11:35
Forum: Z-Wave
Topic: HomeSeer HS-WD100+ Dimmer
Replies: 4
Views: 1748

Re: HomeSeer HS-WD100+ Dimmer

I've been fussing with the HS-WD100+ dimmer, trying to get it to work with RasPI Domoticz v3.8292, OZW 1.4-2697. Some things are working well, but at the end of the day I'm still stuck on others. The dimmer that I just bought "New" came with firmware version 5.17. After an initial few hours of ...
by Daiii
Sunday 13 August 2017 9:30
Forum: LUA
Topic: Distinguish Actual Button Presses in LUA Device Script
Replies: 2
Views: 1690

Re: Distinguish Actual Button Presses in LUA Device Script

Thank you Nautilus -- I wasn't sure if Domoticz already provided some built-in solution, but your suggestion of storing state in a user variable is a good one. I've gone ahead and implemented this in a very general way and it works REALLY WELL! The LUA routines are attached below if perhaps useful ...
by Daiii
Saturday 12 August 2017 1:38
Forum: LUA
Topic: LUA Scripts Can Not Be Symbolic Links
Replies: 0
Views: 518

LUA Scripts Can Not Be Symbolic Links

Scripts in the scripts/lua directory will not be invoked if they are symbolic (soft) links. Rather, the script files must be actual ordinary files. This policy seems to be implemented in Helper.cpp, called from EvaluateEvent() -> DirectoryListing() -> dirent_is_file() bool dirent_is_file(std::string ...
by Daiii
Saturday 12 August 2017 1:05
Forum: LUA
Topic: Distinguish Actual Button Presses in LUA Device Script
Replies: 2
Views: 1690

Distinguish Actual Button Presses in LUA Device Script

Is it possible in a LUA device script to tell the difference between a Z-Wave switch being manually pressed On/Off, versus that switch changing state as a result of some command that was sent by the controller? Both cases seem to generate the same devicechanged[MySwitch] trigger event. It would be ...