CoolKit-Technologies / ha-addon

Apache License 2.0
255 stars 116 forks source link

iFan 03 light control #57

Closed joluas closed 2 years ago

joluas commented 2 years ago

This is an issue that is not covered on the readme but I was able to solve it.

If you have an iFan03, the settings available on https://github.com/CoolKit-Technologies/ha-addon/blob/master/eWeLink_Smart_Home/README.md are missing one configuration so that you are able to control the light from the Lovelace dashboard.

Add this to configuration.yaml:

light:            
  - platform: template
    lights:
      ewelink_virtual_fan:
        turn_on:
          service: light.turn_on
        turn_off:
          service: light.turn_off

Without this configuration you get the error: Failed to call service light/turn.on. Service not found

Hope that this helps someone so that they avoid the 3 days of troubleshooting that I performed.

joluas commented 2 years ago

I am new to home assistant and github. I am not sure this was the best way to let the dev know about this. This can be closed any time.