Xiaomi motion sensor blocky not working

Post Reply
Posts: 1
Joined: Sunday 03 June 2018 15:16
Target OS: Raspberry Pi
Domoticz version:

Xiaomi motion sensor blocky not working

Post by Kartes » Monday 09 July 2018 22:57


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)


One of my blocky's


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


Posts: 31
Joined: Monday 20 November 2017 4:24
Target OS: Raspberry Pi
Domoticz version:
Location: Australia

Re: Xiaomi motion sensor blocky not working

Post by welby » Thursday 12 July 2018 10:11

Try changing the and to or between the times ;)

User avatar
Posts: 263
Joined: Monday 23 February 2015 13:45
Target OS: Windows
Domoticz version: 3.4834
Location: Netherlands

Re: Xiaomi motion sensor blocky not working

Post by mrf68 » 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. ;)
3x RPi
1x W2k12 (vm)
3x RFXcom433e
1x Razberry board
KAKU: 9x APA3-1500R, 2x ACDB-7000C, 3x AMST-606, 1x APIR-2150, 1x AWS-3500, 1x ATMT-502
Z-wave: 8x Everspring AN145
Misc: 2x wireless doorbells

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests