This file implements scenes in SmartHomeNG
This class loads all scene definitions from /scenes folder and adds the necessary triggers for the scenes to function.
The scene definitions are stored in /scenes files with the extension .conf but don’t follow the file format for conf-files of smarthome.py!
smarthome (object) – Main SmartHomeNG object
Returns the instance of the Scenes class, to be used to access the scene-api
Use it the following way to access the api:
from lib.scene import Scenes scenes = Scenes.get_instance() # to access a method (eg. xxx()): scenes.xxx()
object of None
Returns a list with the names of all scenes that are currently loaded
list of scene names
Returns a list with the the defined actions for a scene
list of scene values