Search found 7 matches

by Feddan
Wednesday 22 November 2017 19:54
Forum: Blockly
Topic: Lux sensor triggers all "If else" but should only trigger one
Replies: 3
Views: 946

Re: Lux sensor triggers all "If else" but should only trigger one

Unfortunately nested if's do not work and with "else if" the conditions must be set so that all of them mutually exclude each other, otherwise all matching condition are executed even if a prior condition matches. See e.g. http://www.domoticz.com/forum/viewtopic.php?f=6&t=16946&p=153470&hilit ...
by Feddan
Tuesday 21 November 2017 22:14
Forum: Blockly
Topic: Lux sensor triggers all "If else" but should only trigger one
Replies: 3
Views: 946

Lux sensor triggers all "If else" but should only trigger one

I have the following Blockly "code":
MultiSensor4_TriggersAll.PNG
MultiSensor4_TriggersAll.PNG (273.06 KiB) Viewed 905 times
I've had problems getting it to work properly so I added a few debug messages to see which triggers that worked. Turns out that ALL of them trigger, when the Lux value is 0.

Is something broken or have I missed something?
by Feddan
Thursday 19 October 2017 14:13
Forum: Show your projects
Topic: Pellet stove hack
Replies: 7
Views: 3036

Re: Pellet stove hack

Maybe you could monitor the energy consumption to detect whether it's on or off?

This plug for example monitors energy consumption: http://nodon.fr/en/z-wave/micro-smart-plug-z-wave_14-2

This is another way (but costs more): https://aeotec.com/z-wave-home-energy-measure
by Feddan
Thursday 19 October 2017 13:42
Forum: Bash / PowerShell / Batch etc.
Topic: Monitor memory usage - curl command results in "401 Unauthorized"
Replies: 1
Views: 1984

Re: Monitor memory usage - curl command results in "401 Unauthorized"

I solved it by adding &username=AAA&password=BBB where AAA is the encoded username and BBB is the encoded password. I used this webpage to encode them: https://www.base64encode.org/ More information regarding this is available here: https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's#Authorization ...
by Feddan
Wednesday 18 October 2017 20:52
Forum: Bash / PowerShell / Batch etc.
Topic: Monitor memory usage - curl command results in "401 Unauthorized"
Replies: 1
Views: 1984

Monitor memory usage - curl command results in "401 Unauthorized"

I'm trying to follow this guide: https://www.domoticz.com/wiki/Monitor_memory_usage It didn't work but after replacing "grep telegram-cli" with "grep domoticz" I at least got it to print out the current memory usage in the terminal. But when I execute the following command: curl "http://192.168.1 ...
by Feddan
Wednesday 18 October 2017 19:08
Forum: Blockly
Topic: "Time > Sunrise AND Time < Sunset" doesn't work
Replies: 9
Views: 5589

Re: "Time > Sunrise AND Time < Sunset" doesn't work

CaesarPL wrote: Wednesday 18 October 2017 16:25 Why blockly :) ? You can do it directly on the switch.
Oh, I did not know that. I will try that instead, thanks!
by Feddan
Wednesday 18 October 2017 16:10
Forum: Blockly
Topic: "Time > Sunrise AND Time < Sunset" doesn't work
Replies: 9
Views: 5589

"Time > Sunrise AND Time < Sunset" doesn't work

I have two saved events, where I want to turn Off an outside lamp on Sunrise, and turn it On on Sunset.

Sunrise:
DomoBlockySunrise.PNG
DomoBlockySunrise.PNG (39.68 KiB) Viewed 5451 times

Sunset:
DomoBlockySunset.PNG
DomoBlockySunset.PNG (39.26 KiB) Viewed 5451 times

But it doesn't work! What am I missing?