support loading scenes from HA

This commit is contained in:
Jon Maddox
2015-09-16 03:14:22 -04:00
parent 7f753f79f6
commit eb6c881d28

View File

@@ -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)
}