Chromecast
Config Setup example
OBS!!! TEMP EXAMPLE
class Config(ConfigObject):
def config(self):
config = {}
# Chromecast config
config["chromecast"] = {}
return config
def setup(self):
# Chromecast devices -------------------------------------------------------------
self.chromecast_kitchen_speaker = EventObject("chromecast", "kitchen_speaker")
def process_event(self):
if self.play_some_play_event.event == "true":
self.chromecast_kitchen_speaker.set("play!:!mediaLink!:!mediaType")
if self.play_some_stop_event.event == "true":
self.chromecast_kitchen_speaker.set("stop")