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

Home Assistant Z-Wave Fan Speed #1397

Open jay2theb opened 10 months ago

jay2theb commented 10 months ago

I am trying to use HA Bridge to set the fan speed of a ceiling fan, connected to a in wall Z-Wave fan controller via Z-Wave-js-ui and HomeAssistant.

Using the following call in HA-Bridge (that is correct as far as I can tell) only results in the device being switched on. I have tried both with and without the "state":"on" options.

{"entityId":"fan.rebekah_s_fan","hassName":"HAZion","state":"on","percentage":"${intensity.byte}"}

Via curl, this call works with no issue

curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer (API KEY)" -d '{"entity_id": "fan.rebekah_s_fan", "percentage": 93}' http://home-assistant-ip:8123/api/services/fan/set_percentage

I am running HA bridge 5.4.0 - is there something I'm doing wrong here?

jay2theb commented 10 months ago

I also suspect that if I could some how configure home assistant to treat the fan controller as a dimmable light, that the built in call via HA Bridge ( {"entityId":"fan.rebekah_s_fan","hassName":"HAZion","state":"on","bri":"${intensity.byte}"} ) would work out of the box. Although I can't seem to figure out if this is even possible

jay2theb commented 10 months ago

https://www.home-assistant.io/integrations/switch_as_x does not work for me because this device does not present as a switch