When I activate the script, the music plays, the volume is set, but the sleeptimer is unset. I get this error in the log:
17-04-25 18:03:26 ERROR (Thread-10) [homeassistant.core] Error doing job: Future exception was never retrieved Traceback (most recent call last): File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run result = self.fn(*self.args, **self.kwargs) File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py”, line 1020, in execute_service service_handler.func(service_call) File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/sonos.py”, line 166, in service_handle device.set_timer(service.data[ATTR_SLEEP_TIME]) AttributeError: ‘SonosDevice’ object has no attribute ‘set_timer’
Yes I see the service for the domain media_player.
This happens:
17-04-27 16:59:23 ERROR (Recorder) [homeassistant.core] Error doing job: Future exception was never retrieved Traceback (most recent call last): File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run result = self.fn(*self.args, **self.kwargs) File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py”, line 1020, in execute_service service_handler.func(service_call) File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/media_player/sonos.py”, line 166, in service_handle device.set_timer(service.data[ATTR_SLEEP_TIME]) AttributeError: ‘SonosDevice’ object has no attribute ‘set_timer’