Hello again,
Your solution works just PERFECT
The earlier tests was not really stable and the relay did stange things from time to time.
But this works stable, i have tested at least 20 times.
It is also simple, only 2 lines. - Great Work.
Best Regards
Peter
Search found 7 matches
- Tuesday 02 October 2018 21:19
- Forum: LUA
- Topic: Problem with table.insert in commandArray
- Replies: 5
- Views: 717
- Monday 01 October 2018 21:40
- Forum: LUA
- Topic: Problem with table.insert in commandArray
- Replies: 5
- Views: 717
Re: Problem with table.insert in commandArray
Thank you very much, i'll try this tomorrow evening.. > "The event system in domoticz is single threaded and when a script waits for a command to finish, all other script activity has to wait as well. " < Here i learned more about Domoticz : I was calling a LUA script, which included another LUA ...
- Monday 01 October 2018 9:20
- Forum: LUA
- Topic: Problem with table.insert in commandArray
- Replies: 5
- Views: 717
Re: Problem with table.insert in commandArray
Thank you very much, that makes more sense to me. Are there other types of scripts, where lines are executed sequence ? I know my commands are a little confusing, but the relay in fact goes ON when i send OFF and vice versa. it is a cheap eBay 433 relay. So what i want is to : Turn relay ON in 2 ...
- Sunday 30 September 2018 20:32
- Forum: LUA
- Topic: Problem with table.insert in commandArray
- Replies: 5
- Views: 717
Problem with table.insert in commandArray
Hi, I want these commands executed in sequence, but it works only if i have one line in commandArray not if there are 2 lines. - What am i doing wrong ? commandArray = {} if (devicechanged['vTest1'] == 'On') then print('vTest Called...') table.insert (commandArray, { ['Relay1'] = 'Off FOR 2 SECONDS ...
- Friday 28 September 2018 15:05
- Forum: Other questions and discussions
- Topic: MQTT Publish command types
- Replies: 5
- Views: 1486
[Solved] MQTT Publish command types
Solved : I think i can find most of it here :
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's
br;
Peter
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's
br;
Peter
- Friday 28 September 2018 14:28
- Forum: Other questions and discussions
- Topic: MQTT Publish command types
- Replies: 5
- Views: 1486
Re: MQTT Publish command types
In the wiki, there's only the examples, i think there must be a lot of different types.
- Friday 28 September 2018 14:20
- Forum: Other questions and discussions
- Topic: MQTT Publish command types
- Replies: 5
- Views: 1486
MQTT Publish command types
Hi, Does anyone know where i can find an overview of the command types i.e "switchlight" used in MQTT publish ? {"command": "switchlight", "idx": 2450, "switchcmd": "On" } {"command": "setcolbrightnessvalue", "idx": 2450, "color": {"m":3,"t":0,"r":0,"g":0,"b":50,"cw":0,"ww":0}, "brightness": 40 ...