Xiaomi motion sensor blocky not working Topic is solved

Moderator: leecollings

Post Reply
Kartes
Posts: 4
Joined: Sunday 03 June 2018 15:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Xiaomi motion sensor blocky not working

Post by Kartes »

Hello,

I'm having troubles with my Aqara motion sensor and the blocky's i'm using to let them activate a few lights in my house. Sinds this evening it stopped activating my blocky scripts. The strange thing is that i can turn the light on from the switches section and when i walk past the sensor, the sensor will activate in de switches section. In the logging i also see that the sensors are switching on but for some reason it won't activate the lights i configured in the scripts.

Doe someone have any idea? I've checked all the settings but maybe i'm doing something wrong. I'm quite new to Domoticz and this is the first time for me trying this out so any help would be awesome.

Domoticz Version: V4.9700
OS: Rasberry PI OS (linux)


Examples,

One of my blocky's

Image

This blocky is the only one working, i use it to turn of all my lights.

Image
welby
Posts: 36
Joined: Monday 20 November 2017 3:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Australia
Contact:

Re: Xiaomi motion sensor blocky not working

Post by welby »

Try changing the and to or between the times ;)
mrf68

Re: Xiaomi motion sensor blocky not working

Post by mrf68 »

Just to give a little more info: within the same day it can’t be after 21:45 AND earlier than 04:00 at the same time. That’s why it doesn’t work and you need to change the AND to OR. When you’re not sure why some scripts don’t work, try to make it as simple as possible by using 1 if statement, and without AND and OR blocks. For example: one blockly that uses the > 21:45 and a second blockly (separate one) with the < 04:00. If both do work, then you know it has something to do with the logic within your first try. ;)
Kartes
Posts: 4
Joined: Sunday 03 June 2018 15:16
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Xiaomi motion sensor blocky not working

Post by Kartes »

mrf68 wrote: Friday 13 July 2018 19:28 Just to give a little more info: within the same day it can’t be after 21:45 AND earlier than 04:00 at the same time. That’s why it doesn’t work and you need to change the AND to OR. When you’re not sure why some scripts don’t work, try to make it as simple as possible by using 1 if statement, and without AND and OR blocks. For example: one blockly that uses the > 21:45 and a second blockly (separate one) with the < 04:00. If both do work, then you know it has something to do with the logic within your first try. ;)
Thanks for the reply, I tried this and it's working now. It had something to do with the AND / OR. I've Changed the AND to OR and it's functioning now, Thanks a lot! :D :D
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest