IKEA Motion sensor (new type)

Moderator: leecollings

Post Reply
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

IKEA Motion sensor (new type)

Post by peterbos »

Hi,

I have an IKEA motion sensor 704.299.13, the new and smaller type. I installed it in our hallway to test it with the idea to use it for switching off the lamps if there's no one in the hallway. I don't need it to switch the lamps on.

Without automation the sensor is pretty useless. Exactly a minute after the sensor switched on, it switches off - regardless if there's still (or again) any motion. It even takes tens of seconds after that before the sensor switches on again if there's still motion. The time between switching off and on again is not constant, unlike the time between switching on and off again. The only solution I see now is to create a virtual sensor, that gets on when the motion sensor goes on. The virtual sensor should ignore the motion sensor switching off, but should switch itself off after - say - two minutes after the last time it was switched on. If the motion sensor switches on again in these two minutes, the two minutes should start again. In dzVents I created this script. Does anyone already have a better implementation of the sensor?

Code: Select all

return {
	on = {
		devices = {'Bewegingssensor (hal)'}, -- the motion sensor
	},
	execute = function(dz, device)
	    local virtualDevice = dz.devices('Bewegingssensor (hal, virtueel)') -- the virtual motion sensor
	    local delay = 120
	    if (virtualDevice.active) then
	        virtualDevice.switchOff().afterSec(120)
        else
            virtualDevice.switchOn().forSec(120)
        end
    end
}
Peter
User avatar
waltervl
Posts: 6681
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: IKEA Motion sensor (new type)

Post by waltervl »

How do you communicate with your zigbee environment as most plugins/controller ui like zigbee2mqtt and zigbee for Domoticz have options to set behavior of motion sensors.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: IKEA Motion sensor (new type)

Post by peterbos »

Hi Walter,

I just connected it to Phoscon app (deConz, Conbee II).

Peter
User avatar
waltervl
Posts: 6681
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: IKEA Motion sensor (new type)

Post by waltervl »

Then please check the phoscon documentation how to change the parameters of this motion device.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest