dresden-elektronik / phoscon-app-beta

Access to Phoscon app beta
78 stars 5 forks source link

Feature Request: Call URL with Remote-Buttons/Sensors #424

Closed michaelkandziora closed 2 years ago

michaelkandziora commented 2 years ago

Hello Dresden Elektronik,

is there any posibility to assign "Action-URLs" to specific buttons of a zigbee remote? Im using an IKEA TRADFRI Remote and I would really appreciate to assign URLs to be called for every button and different button states (short buttonpress, long buttonpress).

I would use this to call scenes, which I have defined at the smarthome server system (FHEM) I am using. (I had to define my scenes there, because not all of my lights are Zigbee)

Best regards, Michael

manup commented 2 years ago

I think this is possible via the REST-API.

Here you can use a http:// URL as action in a rule, this is a currently undocumented Webhook feature. I haven't tested it with buttons but it should work there too.

https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/rest_rules.cpp#L863

michaelkandziora commented 2 years ago

Thank you very much for the quick response! I will try this out and give a response here of my experience. :)

stale[bot] commented 2 years ago

As there hasn't 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.

stale[bot] commented 2 years ago

As there hasn't been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it isn't solved, request to get this opened again.