rudders / homebridge-http

HTTP Plugin for Homebridge
Apache License 2.0
178 stars 110 forks source link

Possible to specify custom JSON responses for "brightnesslvl_url" ? #91

Open brotkasten87 opened 5 years ago

brotkasten87 commented 5 years ago

Hello,

is it possible to specify custom JSON responses for "brightnesslvl_url" with the same system that's used for "status_on" and "status_off" response definitions?

An idea would be to speficy the URL via "brightnesslvl_url" and then define the matching JSON output via

"brightnesslvl": { "Brightness":"%X%" }

with "%X%" being the brightness that's being set. That would allow us to handle custom JSON responses from other plugins. Thanks!