bwssytems / ha-bridge

Home automation bridge that emulates a Philips Hue light system and can control other systems such as a Vera, Harmony Hub, Nest, MiLight bulbs or any other system that has an http/https/tcp/udp interface. This is a compact impl to run on small format computers. This is impl started from this project https://github.com/armzilla/amazon-echo-ha-bridge.
Apache License 2.0
1.45k stars 198 forks source link

How does Ha-Bridge process commands and responses #1337

Open smartypantsuk opened 2 years ago

smartypantsuk commented 2 years ago

Hi.

When alexa requests to control a device through ha-bridge, does ha-bridge then take the response from the device and pass it back to alexa?

I'm talking Json commands.

I have some virtual devices controlled using json, but Alexa works fine turning off the device but complains when turning on the device. I suspect the problem is with the json response back to ha-bridge.

Anyone know how it works?

bwssytems commented 2 years ago

The ha-bridge creates the hue response as defined in the hue documentation.