Hi HA community.
My setup is: Raspberry Pi3+ and Conbee (Dresden Electronics) running deConz.
Im a newbee in this. A lot of things has gone well so far. Found zigbee devices and Hue bridge as well. Even made the tracker ”finding me”!!
On forums i found a recipe for setting up a sensor that turns on a light for 1 minute and i all works well.
BUT i cant make a simple switch from IKEA Trådfri turn on or off a bulp. I tryed to set i up in Automations. I tryed to Copy and Paste the setup for the sensor and edit that, but nothing works.
I also have a Xiaomi Toggle Switch, and no luck there as well.
Where do i start? Do i have to add something into configuration.yalm, automation.yalm or what.
Well you start with the entetys.
spoiler: I not familiar with deConz, but anyway.
First - check out your states tab ( icon looks like <>) on the far left corner at the bottom.
In there you find all the devices witch HA knows so far.
when you did well you should find either an sensor or binary_sensor wich changes the state as you press it.
from there you can make an automation. with the - platform: state
I can already tell you that you got the wrong sensor here - thats the one for your battery level.
get me the entety ID’s of your switch and light and Ill write you an very basic automation for starters
most welcome.
I ll be on the move now. so still here a basic example.
when your light is a switch (also common for lights) you have to replace light.toggle with switch.toggle - you could also visit at discord https://discordapp.com/invite/c5DvZ4e
When there is somebody who knows how to help we’re awnsering
Thank you so far… Im now trying to find out how to add my switches as a “switch” and not a thing that shows me the state of the battery.
Have a nice day
martin
Its meight be just underneath the battery level - or as said - it could also be an binary_sensor.
press in the states tab comand+f for searching and look for tradffri_on
just pair the sensors and bulbs with deconz and make all the automations in home assistant (as suggested before)
positive: you have all kind of automations and scripts in one place
downside: it’s a bit thumbersome at the beginning
create easy things (like switches) inside the Phoscon UI.
positive: It’s much more straight forward to configure the buttons with the Phoscon UI
downside: eventually you will get things cluttered with easy automations inside Phoscon, other things as Home Assistant scripts (and eventually others in Node Red)
I found managing easy customizations like switches easiest when I configure it inside the phoscon app (option 2). I never ran into any issues like this. See how to configure switches here.
It’s just easier, Home Assistant doesn’t even get involved here. If you don’t like the phoscon UI, you can even try the Android App “Hue Essentials”. It lets you control your Phoscon Gateway same as a Hue bridge and allows for customization of switches, too! (Not sure if the ones you got are supported though).
Deconz switches aren’t displayed as binary sensors (only their battery level or temperature sensor for motion sensors get.
Quote from the docs:
Remote controls (ZHASwitch category) will not be exposed as regular entities, but as events named deconz_event with a payload of id and event . Id will be the device name from deCONZ and Event will be the momentary state of the switch. However, a sensor entity will be created that shows the battery level of the switch as reported by deCONZ, named sensor.device_name_battery_level.
thank you capstan1. Thats where im stuck now… If i can “import” the switches fra Deconz to HA i think that all my problems will be solved… So next issue is how to integrate them from Deconz
Hej Søren
Tak for svaret. Da jeg startede denne tråd var det absolut ikke så let at finde wireless switch devices som det er blevet nu. Der er stadig et stykke vej, men det går den rigtige vej.
mvh martin [email protected]