rogro82 / io.homeassistant

Home-assistant integration for Homey
GNU General Public License v3.0
24 stars 14 forks source link

Change Dim into OnOff? #1

Open killvn opened 5 years ago

killvn commented 5 years ago

All the lights get in the Capabilities "dim", I want more options Capabilities "dim" or "onoff".

rogro82 commented 5 years ago

Light capabilities are based on the supported_features attribute reported by home-assistant. So if a light has a dim feature in HA it will also have that capability in Homey.

If you want to just want to be able to switch a light on/off then i would suggest either creating a switch in HA or use the custom_component and bind a light entity to the onoff capability.

Something like:

homey:
  some_light:
    name: Some light
    capabilities:
      onoff: light.some_light
killvn commented 5 years ago

Thanks rogro82, There's a problem. Homey does not automatically reconnect after I restart or re-power the Hass.