Can this be done with Ikea devices and Zigbee usb stick?

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
User avatar
Varazir
Posts: 394
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Can this be done with Ikea devices and Zigbee usb stick?

Post by Varazir »

Hello,

I wonder if this can be done:

1) Sensor only controls a sensor-switch in Domoticz, making Domoticz doing the logic work?
Don't want the sensor to control the bulbs directly

2) 5 button control: pressing the arrow right or left shifts the control between groups
When the next group is selected one bulb/spotlight blinks ones to confirm the room selected.

3) Sett the brightness without turning the bulb/spotlight on?
My hallway don't have any windows, doors from other rooms the lets in the light.
Due to that I want the brightness to be low during the day but around sun going down I want it to be higher.
This one goes hand in hand with the first as the sensor are in the hallway
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Can this be done with Ikea devices and Zigbee usb stick?

Post by Thorgal789 »

Hello
1 - Yep, I thing all plugins works like this
2 - you need to code it yourself, but I don't see why it could not be possible, as like I have said in 1, you are controlling all the actions
3 - Yes and no, you can't send brightness value to an off bulb, you will have an error message, but you can set a luminosity setting according to a time setting.

An exemple of lua code I m using, to show what you can do (with more explanations here > https://github.com/Smanar/Domoticz-deCO ... us-sensors )

Code: Select all

-- Detecteur couloir
if devicechanged['deCONZ - Motion Sensor'] then
    if devicechanged['deCONZ - Motion Sensor'] == 'On' then
        print("Detecteur active")

        if (otherdevices['working day]== 'On') then
            commandArray['Scene:working day light]='On'
        else
            if ((_time >= '23:00') or (_time < '07:00')) then
                commandArray['Scene:night light']='On'
            else
                commandArray['Scene:normal light']='On'
            end
            if ((_time >= '12:00') and (_time < '21:00')) then
                commandArray['Scene:normal light']='On'
            end
        end
    else
        print("Detecteur Desactive")
        if (otherdevices['deCONZ - lampe ikea']== 'On') then
            commandArray['deCONZ - lampe ikea']='Off'
        end
        if (otherdevices['deCONZ - Couloir']== 'On') then
            commandArray['deCONZ - Couloir']='Off'
        end
    end
end
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest