Search found 59 matches
- Wednesday 13 October 2021 0:53
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
I think I found the answer. "inActive: Boolean. 3.1.0 true if active is false and vice versa. If active is nil inActive is also nil", I'll do more tests, thank you very much
- Wednesday 13 October 2021 0:51
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
Those are very good questions! 1 - you're asking domoticz for 3 devices in your script. If for some reason at some point in the future any of those devices are not/no longer available in domoticz, the call to domoticz.devices( <device name/idx> ) will return nil. By checking in the script and ...
- Monday 11 October 2021 23:05
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
That can't be: read the script and you'll see it only switches the light on when a motion sensor switches from off to on. You must have something else that switches the light on or your sensor switches to on when you don't expect it. local M1_NAME = 'movimiento cocina' local M2_NAME = 'movimiento ...
- Monday 11 October 2021 11:30
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
local M1_NAME = 'movimiento cocina' local M2_NAME = 'movimiento cocina2' local L_NAME = 'Luz cocina' return { on = { devices = { M1_NAME, M2_NAME } }, execute = function(domoticz, device) local m1 = domoticz.devices(M1_NAME) local m2 = domoticz.devices(M2_NAME) local l = domoticz.devices(L_NAME) if ...
- Sunday 10 October 2021 12:35
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
The script gets executed whenever either device changes state. I.e. when one of your motion detectors switches on, but also when one switches off. The trick is to only do your check if your sensor is switched from off to on: the device that changed state is in the 2nd parameter, so you just need to ...
- Saturday 09 October 2021 19:23
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
If you want to do it to learn how to write scripts in dzvents, just go on, post what you've got and I'll try to help you when you get stuck. If you just need a working solution, I suggest you have a look at my scripts Auto-On, Auto-Off, etc. Dear friend, thanks for your answers. i have my script ...
- Wednesday 06 October 2021 22:36
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
Waaren is no longer available for helping us. I typing this on my phone, so no example code from me for now. What you need to do is get both devices. local d1 = domoticz.devices('name of pir 1') and the same for the other device. Then check if either is enabled then the ligt should be on else (both ...
- Wednesday 06 October 2021 12:15
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
Re: use of two motion sensors together in dzvents
Thanks for your answer, I've been trying for a whole week with variables and in every possible way, but I can't. Could someone give an example? Thank you. @waaren , can you help me? thanks in advanced
- Wednesday 06 October 2021 10:43
- Forum: dzVents
- Topic: use of two motion sensors together in dzvents
- Replies: 16
- Views: 1841
use of two motion sensors together in dzvents
Hello dear friends, I'm trying to script two motion sensors for the kitchen. The following script that I contribute works fine, but if I turn off the light manually using the switch, the "kitchen light" device logically goes off. But since the two sensors are still "on" a strange situation occurs ...
- Thursday 15 July 2021 2:35
- Forum: dzVents
- Topic: how i can launch an script in dzvents depending on the proximity at xx:15 or xx:45 hours for listen weather news
- Replies: 4
- Views: 407
Re: how i can launch an script in dzvents depending on the proximity at xx:15 or xx:45 hours for listen weather news
Maybe something like that. In the pushbutton event : local nowMin = domoticz.time.minutes if nowMin < 15 then domoticz.devices('homecinema').active().afterMin(15- nowMin) elseif nowMin >= 15 and nowMin < 45 then domoticz.devices('homecinema').active().afterMin(45- nowMin) elseif nowMin >= 45 and ...
- Thursday 15 July 2021 0:07
- Forum: dzVents
- Topic: how i can launch an script in dzvents depending on the proximity at xx:15 or xx:45 hours for listen weather news
- Replies: 4
- Views: 407
Re: how i can launch an script in dzvents depending on the proximity at xx:15 or xx:45 hours for listen weather news
Maybe something like that. In the pushbutton event : local nowMin = domoticz.time.minutes if nowMin < 15 then domoticz.devices('homecinema').active().afterMin(15- nowMin) elseif nowMin >= 15 and nowMin < 45 then domoticz.devices('homecinema').active().afterMin(45- nowMin) elseif nowMin >= 45 and ...
- Wednesday 14 July 2021 12:02
- Forum: dzVents
- Topic: how i can launch an script in dzvents depending on the proximity at xx:15 or xx:45 hours for listen weather news
- Replies: 4
- Views: 407
how i can launch an script in dzvents depending on the proximity at xx:15 or xx:45 hours for listen weather news
Dear friends an dear @waaren, In my city they broadcast the weather information on the radio every hour at xx: 15 minutes and at xx: 45. I would like to make a script that when I press a button that calculates if I am closer to xx: 15 or if I am closer to xx: 45 at the time of pressing the button ...
- Monday 22 February 2021 13:45
- Forum: Speech & Voice Systems
- Topic: Alexicz - FREE Domoticz to Alexa Integration
- Replies: 336
- Views: 73252
Re: Alexicz - FREE Domoticz to Alexa Integration
Aha, that's allowed because you are not publishing the skill and it's for personal use only in your dev-account. It's a very bad idea though, as your Domoticz is fully exposed with no protection. It's not 'if' you will be hacked, but 'when'... You already have an external IP address, right? Have ...
- Monday 22 February 2021 12:33
- Forum: Speech & Voice Systems
- Topic: Alexicz - FREE Domoticz to Alexa Integration
- Replies: 336
- Views: 73252
Re: Alexicz - FREE Domoticz to Alexa Integration
I changed https by http in configdz-template.json or configdz.json in "url" https://myexternalip was replaced by "url" http://myexternalip. making this change alexa works with my domoticz perfectly but I am afraid of security problems, either because I use http or because I give my username ...
- Monday 22 February 2021 11:08
- Forum: Speech & Voice Systems
- Topic: Alexicz - FREE Domoticz to Alexa Integration
- Replies: 336
- Views: 73252
Re: Alexicz - FREE Domoticz to Alexa Integration
What/where did you change https to http? Alexa can only work with an external https URL with a domain name. Your internal IP address like http://192.168.1.10:8080 cannot be reached from the cloud. I changed https by http in configdz-template.json or configdz.json in "url" https://myexternalip was ...
- Monday 22 February 2021 10:30
- Forum: Speech & Voice Systems
- Topic: Alexicz - FREE Domoticz to Alexa Integration
- Replies: 336
- Views: 73252
Re: Alexicz - FREE Domoticz to Alexa Integration
@grasuoare The skill code needs to be able to reach Domoticz via HTTPS - that's simply an Amazon requirement. The url for your instance is hard-coded in the configdz.json file and is e.g. https://myhouse.ddns.net:443. I've never used a VPN but if it gives you a url to allow external traffic to talk ...
- Sunday 21 February 2021 9:17
- Forum: Other questions and discussions
- Topic: How i can create a hue bulbs group?
- Replies: 8
- Views: 683
Re: How i can create a hue bulbs group?
Dear friends,
Actually, with zigbe2mqtt plugin for domoticz is possible work with groups adding a suffix, please visit https://github.com/stas-demydiuk/domoti ... qtt-plugin for see the sufix explanation.
Thanks in advanced
Best regards
Actually, with zigbe2mqtt plugin for domoticz is possible work with groups adding a suffix, please visit https://github.com/stas-demydiuk/domoti ... qtt-plugin for see the sufix explanation.
Thanks in advanced
Best regards
- Friday 19 February 2021 11:14
- Forum: Other questions and discussions
- Topic: How i can create a hue bulbs group?
- Replies: 8
- Views: 683
Re: How i can create a hue bulbs group?
You should ask.the plugin maker. Can you change to color from Zigbee2mqtt directly? What do you see in the logging of Domoticz if you try to change the color from Domoticz? By the way, there is a Zigbee forum here, so better to ask this there. I will ask a moderator to move this topic. Hello again ...
- Thursday 18 February 2021 23:51
- Forum: Other questions and discussions
- Topic: How i can create a hue bulbs group?
- Replies: 8
- Views: 683
Re: How i can create a hue bulbs group?
Create a group in zigbee2mqtt and name it according the rules to get a dimmer. See also https://github.com/stas-demydiuk/domoticz-zigbee2mqtt-plugin Yes, I have a group created in zigbe2mqtt, and I act through scripts on the 4 bulbs at the same time making a call to the group. But from domoticz I ...
- Thursday 18 February 2021 19:08
- Forum: Other questions and discussions
- Topic: How i can create a hue bulbs group?
- Replies: 8
- Views: 683
How i can create a hue bulbs group?
Dear friends, I have 4 hue bulbs devices in my room. Is possible create a domoticz group for the 4 bulbs? I want test several colours using the "circle colour" with the domoticz app or domoticz desktop" and to be able to send several colours to the 4 bulbs in real time (similar with hue bridge that ...