Did you consider creating a Wiki article for it at http://www.domoticz.com/wiki/Main_Page ?
Might be interessting for more people, and the forum search function kind of sucks...
Edit: Solved, at the bottom of this post the working version for anyone that's interested. Hi all, I've tried to make this script which will turn on a switch (HomeEasy) at weekdays at 23:15 so the attached devices (phones, tablets, etc) can be charged with the cheaper power at night. However I keep ...
Ah damnit, you're right! I forgot the .sh behind the script name! Changing bash to sh isn't needed, neither is the & but I do get what you try to accomplish with that. However, this is actually making it worse. Why is the script reacting on a lightswitch while the devicechanged is defined as ...
Thanks Jos! ElseIf did the trick, atleast for the error! Now to fix why it triggers on a random device switch, such as turning on a lightswitch: 2017-11-04 12:02:44.300 User: Admin initiated a switch command (3/Lamp_3/Off) 2017-11-04 12:02:44.348 LUA: Smoke alarm! Sending out alerts. 2017-11-04 12 ...
Hi all, I've tried to make an event/lua which sends out a Telegram message to either my own alarm group which only contains some family members or to a different Telegram group which also contains neighbours, depending on the parameter given to the bash script (based on the presence of a resident ...
EDIT: Tried it with: /usr/bin/curl -s -i -H "Accept: application/json" "http://$DOMO_IP:$DOMO_PORT/json.htm?type=command¶m=resetsecuritystatus&idx=$SMOKE_IDX&switchcmd=Normal" and gives back this: HTTP/1.1 200 OK Content-Length: 51 Content-Type: application/json;charset=UTF-8 Cache-Control: no ...
Hi all, I've bought the FA21RF/2 (a set of two) for two reasons: - In case of a smoke alarm (Panic status) send me a Telegram message via my Telegram bot. - In case of a breach (motion or magnet contact detection) make the smoke detectors sound an alarm. The two FA's are in master/slave mode and are ...
https://www.domoticz.com/forum/tracker.php?p=2&t=667 As asked in https://www.domoticz.com/forum/viewtopic.php?f=23&t=9489 it would be really nice to be able to run system scripts (bash, python, whatever) from Blocky. LUA is nice, but putting a sleep in LUA will cause it to run multiple times ...
Hi, Can anyone recommend a good and preferable cheep smoke and carbon monoxide detector which is supported in Domoticz? I've seen Flamingo's and Elro's but most only capable of detecting one, or are quite expensive (90,- or more), or are no longer being sold. I'm aware smoke and CM are hard to ...
Hi, TL;DR I've created several LUA scripts which execute bash scripts on their turn. It works pretty nice, but I can't add a 'wait' or 'sleep' in it without Domoticz complaining about it. 2015-12-20 21:37:06.709 Error: EventSystem: Warning!, lua script /home/pi/domoticz/scripts/lua/script_device_TG ...
Hi, Sorry to dig up such an old post, but has there been any real progress on this? For some reason is ErikCramer's answer been tagged as a solution, but I fail to see how. I'm thinking about buying a Plugwise Source (USB), but I don't have the time to spent hours and hours on researching. It would ...
I don't know how your presence detection works, but maybe you can convert the script to a 'script_device_presence.lua' instead of a 'script_time_presence.lua' ? A script_device is ran on EVERY device update, so much faster. Then in the script, check for your device if it has changed: if ...
Do you have an example Jos?
I thought it would be easyer to call a second bash script in the LUA that slept for x-seconds, but LUA is screaming in the logs that the script is running longer then 10 seconds.
Apparently that's a bad thing...
Anyone knows if it is possible to run the time based scripts more often?
For instance, twice per minute instead of 'only' one time?
I noticed my presence detection isn't fast enough.