diff --git a/platforms/HomeAssistant.js b/platforms/HomeAssistant.js index 3929b3e..a4fd992 100644 --- a/platforms/HomeAssistant.js +++ b/platforms/HomeAssistant.js @@ -140,6 +140,8 @@ HomeAssistantPlatform.prototype = { accessory = new HomeAssistantLight(that.log, entity, that) }else if (entity_type == 'switch'){ accessory = new HomeAssistantSwitch(that.log, entity, that) + }else if (entity_type == 'scene'){ + accessory = new HomeAssistantSwitch(that.log, entity, that, 'scene') }else if (entity_type == 'media_player' && entity.attributes && entity.attributes.supported_media_commands){ accessory = new HomeAssistantMediaPlayer(that.log, entity, that) }