-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use Remote Controllers in HA? #23
Comments
I'm currently working on it. So keep in touch 😎 |
@slajob are you working on putting in a fix to expose isOn and lightLevel? Then I wont work on it |
@sanjoyg Yes I'm working on exposing remotes (shortcut buttons) pushing action. |
Cool! Can push to base lib, adding optional attributes to
controllerattributes struct
…On Thu, 28 Mar 2024 at 15:00, Sławomir Job ***@***.***> wrote:
@slajob <https://github.com/slajob> are you working on putting in a fix
to expose isOn and lightLevel? Then I wont work on it
Yes I'm working on exposing remotes (shortcut buttons) pushing action.
But It can take more time because it's not native suported by
Leggin/dirigera package.
So still working with the highest priority because I need these
functionalities in my system
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2X3CVCFQE7BQYLXDPNTXTY2PIJBAVCNFSM6AAAAABFJX4PK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUG42TQOBYGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
After few deep research probably there is no possibility to use shortcut buttons currently. From base lib issue I got there is no possibility for now to receive shortcut buttons push without assigning them to scenes. So you have to create a scene with something dump to get that event. Source: Leggin/dirigera#28 I also asked for issue in some api researcher: https://codeberg.org/argrento/dirigera/issues/1 @sanjoyg are you owing some shortcut buttons to try it by yourself? |
No I dont have the shortcut. Did you try dumping the events from the base
library event listener api?
…On Tue, 2 Apr 2024 at 00:21, Sławomir Job ***@***.***> wrote:
After few deep research probably there is no possibility to use shortcut
buttons currently.
I tested it out using just base lib in python and unfortunately the
shortcut buttons is_on attribute is not changing when pushing shortcut
button. I tested it out with old tradfri and new somrig button.
From base lib issue I got there is no possibility for now to receive
shortcut buttons push without assigning them to scenes. So you have to
create a scene with something dump to get that event. Source:
Leggin/dirigera#28 <Leggin/dirigera#28>
I also asked for issue in some api researcher:
https://codeberg.org/argrento/dirigera/issues/1
@sanjoyg <https://github.com/sanjoyg> are you owing some shortcut buttons
to try it by yourself?
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2X3CVSAYREQ7NEFVZMWWTY3GUCPAVCNFSM6AAAAABFJX4PK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZQGM2TAOJSGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@slajob I dont have a shortcut button, would you see using the following code if you are able to see any events coming up when the outlets are clicked import dirigera ip= hub = dirigera.Hub(token, ip) import json def on_message(ws: Any, message: str): def on_error(ws: Any, message: str): hub.create_event_listener( |
@sanjoyg As I said in previous message i tried this code from base library using this event listener but it works ONLY when you have a shortcut connected with scene in Ikea Smart home app and there is a message printed where you can see its triggered by my scene "Stop frame speaker": {"id":"10abbfd1-154e-44ad-baca-b82c1d44e4f8","time":"2024-04-02T18:09:59.362Z","specversion":"3.146.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"12e08765-cbc8-4f32-8940-6f00da400933","info":{"name":"Stop frame speaker","icon":"scenes_clean_sparkles"},"type":"userScene","triggers":[{"id":"b63926a9-9933-440a-a107-293dfb853331","type":"app","triggeredAt":"2024-04-01T17:44:47.340Z","disabled":false},{"id":"0bcf91eb-93e1-41cf-9630-d32f30c34b9d","type":"controller","triggeredAt":"2024-04-02T18:09:59.362Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"b55c75ec-829c-4623-a167-0b537569c9e2_1"}}],"actions":[],"commands":[],"createdAt":"2023-04-03T20:35:38.713Z","lastCompleted":"2024-04-02T18:02:10.502Z","lastTriggered":"2024-04-02T18:02:10.502Z","undoAllowedDuration":30,"lastUndo":"2024-04-01T17:44:47.352Z"}}
{"id":"775d55fe-0a90-4579-85dd-f2516984da6b","time":"2024-04-02T18:09:59.386Z","specversion":"3.146.0","source":"urn:com:ikea:homesmart:iotc:rulesengine","type":"sceneUpdated","data":{"id":"12e08765-cbc8-4f32-8940-6f00da400933","info":{"name":"Stop frame speaker","icon":"scenes_clean_sparkles"},"type":"userScene","triggers":[{"id":"b63926a9-9933-440a-a107-293dfb853331","type":"app","triggeredAt":"2024-04-01T17:44:47.340Z","disabled":false},{"id":"0bcf91eb-93e1-41cf-9630-d32f30c34b9d","type":"controller","triggeredAt":"2024-04-02T18:09:59.362Z","disabled":false,"trigger":{"days":["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],"controllerType":"shortcutController","clickPattern":"singlePress","buttonIndex":0,"deviceId":"b55c75ec-829c-4623-a167-0b537569c9e2_1"}}],"actions":[],"commands":[],"createdAt":"2023-04-03T20:35:38.713Z","lastCompleted":"2024-04-02T18:09:59.372Z","lastTriggered":"2024-04-02T18:09:59.372Z","undoAllowedDuration":30,"lastUndo":"2024-04-01T17:44:47.352Z"}} When shortcut button is not connected to any scene, clicking shortcut button dont raise this event listener. Creating empty scenes could resolve that, but ikea smart home app don't allow creating empty scenes doing nothing. Here in this thread you can see a owner of this base lib said there is not possibility to handle empty shortcut buttons |
@slajob 1.1.0 of the base library was released, it has the ability to create_scene , will that help with empty scene? |
@sanjoyg Yess, I requested for that feature and started working |
Will this help in any way? Data pulled out of MQTT via Zigbee2MQTT: Device info Entities
I have the following shortcut buttons: I can try and help testing ... |
Thank you for this, but cant assume zigbeemqtt integration for all installations. @slajob is already working on a mechanism to enable these buttons |
I have a Styrbar and a Somrig buttons. Would be great to see that work without any workaround 😁💪 |
amazing work, the remotes will be a great functionality through HA even if have to go through a work around |
@slajob Hello, I have few Styrbar remotes (E2002), some Tradfri On/Off switches (E1743). Can you please confirm that these models will be also supported? Thank you so much for your effort and great job! |
Can ou please get the json dump please. |
|
Are you ok to create empty scenes and that trigger the remotes? The challenge with remote is that as far as I understand its a P2P device-2-device communication doesnt go thru the gateway. |
Would it be possible to already add this feature as a beta because of the scenes? i would really like to use it and do not care if i have to use a empty scene for that. |
I am having issues setting up an empty scene in the Home smart app. When I try to deselect the lightbulbs or try to proceed through the scene setup without selecting anything the Done button is greyed-out. |
@slajob I will get on the empty scene. Can you confirm the behaviour of lightController, does that also generate events similar to what you posted |
@ianlockhead I am working on the shortcuts but I dont have the buttons with me, let me know if you can help try out some beta release to make this work |
@sanjoyg sorry guys I can’t help anymore cause I returned my Dirigera and completely switched all zigbee stuff to zigbee2mqtt |
@sanjoyg I'm happy to beta test I've got a somrig |
Lovely. Please do the following
|
Press Button 1
Press Button 2
The attached scene is turn on TRETAKT with button 1 and turn off TRETAKT with button 2 |
Additional.. a device changed by a scene does not show its new state in HASS So if I press the remote button the light turns on but HASS show's the light as off |
Thank you for all the debug info @s3than . Please try the latest release (pre-release)
|
Apologies @sanjoyg please find attached logs..
The remote is no longer present in HASS at all |
This seems like the issue here
I removed the remote and reconnected to the Ikea App and get this error |
Additional logs prior to above
|
Please try release the latest release and let me know |
I can see the empty scenes and the debug logs are as below
|
I can confirm I get .. Single Press on both buttons.. |
Super.. are you able to put automation to respond to those events?
…On Thu, 17 Oct 2024 at 18:34, Timothy Colbert ***@***.***> wrote:
I can confirm I get ..
Single Press
Double Press
Long Press
on both buttons..
—
Reply to this email directly, view it on GitHub
<#23 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB2X3CQNI2VTZR3QSOIRQK3Z36YUTAVCNFSM6AAAAABFJX4PK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJZGQ4TCOJYGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Try 2.0 and let know. |
I've just updated to 2.0. I'm using a MOES four button remote, which is correctly paired to the dirigera hub and shows on HA integration. I create an automation and set the entity "Single Click" as trigger, but it never fires. EDIT: if I try to dump data with "dirigera_platform.dump_data" I get the following error in HA logs: [3763302440] Error handling message: Unknown error (unknown_error) ...) |
@sanjoyg I did a complete uninstall of the integration and on a clean install I get
Full uninstall and install 1.8.9 works as before |
@sanjoyg If it makes it easier you can create a branch and I can fork and tag that to run tests on this functionality |
This is fixed with the new release. I had not tested it earlier, have tested it and it works |
Please dump_json |
@sanjoyg created a new issue for this #23 (comment) I don't know if there is some old config hanging around or it's because of the empty scenes Let me know if I should bring the conversation for that back here.. |
@sanjoyg I resolved the #95 the dep for lib didn't update.. I have done a re-install and am running 2.3 I no longer see any scenes, events are triggering in the logs see below
|
With the newest version, all paired remotes appeared as sensor entities in HA, but only showing the battery info:
How does it really work? Are they being treated as HA events?
The text was updated successfully, but these errors were encountered: