Closed brujoand closed 3 years ago
The big question here: IS it working correctly? That button handler is also showing for other devices.
@ebaauw as you have integrated this one, can you provide some pointers here and close if needed?
Yeah so this is where it gets weird. In Home Assistant which is using the deconz integration, I find the entity sensor.tradfri_shortcut_button_battery_level
. But in the the phoscon UI there is nothing added under Switches (or sensors for that matter). So I'm not really sure what's happening.
Yeah so this is where it gets weird. In Home Assistant which is using the deconz integration, I find the entity
sensor.tradfri_shortcut_button_battery_level
. But in the the phoscon UI there is nothing added under Switches (or sensors for that matter). So I'm not really sure what's happening.
That's normal. Phoscon needs to add support themselves.
Best would be to check the deconz_event in HA event listener.
Thanks, it looks like this was added recently https://github.com/dresden-elektronik/phoscon-app-beta/issues/297 so I'll dig further in that direction then.
@brujoand IT is usable within HA though, as it produces deconz_event in HA with the button. No need for phoscon support there :)
ah true, I just find that the phoscon+deconz gives me "better" control over the IKEA buttons and switches compared to HA so I like keeping it there.
Better meaning stuff like supporting the ikea on/off button with on/off for short press and dim+/dim- for long press. In HA that's either lot's of python or AppDaemon + Custom Integration (which I guess is also a lots of python, hehe).
ah true, I just find that the phoscon+deconz gives me "better" control over the IKEA buttons and switches compared to HA so I like keeping it there.
Better meaning stuff like supporting the ikea on/off button with on/off for short press and dim+/dim- for long press. In HA that's either lot's of python or AppDaemon + Custom Integration (which I guess is also a lots of python, hehe).
Fair enough :) Just wait for phoscon to update next release and check it then ^^
Hey, so I did some more digging here and set up VNC into deconz to view the actuall devices. The shortcut button is indeed added to deconz, and it does show up in Home-assistant. But while listening for 'deconz_event' in HA nothing shows up when pressing the button. I can't find the device under entities nor devices in HA but I can add it as a trigger to an automation in the UI, but saving that automation fails because it doesn't have a domain nor entity_id set. So it seems like the devices isn't presentet correctly to HA. Is there something I can do in deconz to change this?
Correction: The device shows up under devices, but not entities in HA.
This sounds like a purely HA related topic now. If the device is sending the button events via API, then there's nothing we can do and you should seek some advice from HA universe.
@SwoopX Sorry, I'm not following you here. The events don't show up in HA as 'deconz_event', all other Tradfri buttons do. How do you draw the conclution that this then is a problem on the HA side? Is there a simple way of verifying that events are being sent from deconz?
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.
Since phoscon beta 2.12.01 it finally works. Just give it a shot!
Describe the bug
Trying to add the IKEA Shortcut button doesn't work, and the logs show
Steps to reproduce the behavior
Expected behavior
The button should be paired as support was added in 2.9.0
Screenshots
Well, I don't think any are relevant, but I better write something here and not delete this header.
Environment
deCONZ Logs
Additional context
Tried adding this issue as #4306 but the bot didn't like it, so here goes again.