Closed maddox closed 9 years ago
Right now the scene component only supports the ON and OFF states (source). That service call should have been triggered by something else (automation perhaps?).
We could make this method more smart and base decisions what services to call based on the domain of the entity and the state it wants to achieve.
Something like:
if state.domain == 'media_player' and state == 'paused':
service = 'media_pause'
elif …
I don't understand. So we can't set the state of things to anything but on
or off
in a scene?
Let me go though this again with a more confident isolation and see if i still see that service call in the logs.
OK, you were right. It must have been a stray call in the logs. So the only issue seems to be the:
15-09-22 21:42:29 WARNING (Thread-20) [homeassistant.helpers.state] reproduce_state: Unable to reproduce state <state media_player.itunes=paused @ 21:38:11 22-09-2015>
...due to the fact that it's asking for a state that isn't supported. This is sort of unfortunate :(
Closing this.
In testing my Good Night scene, I noticed that my media player was not actually getting paused.
With some digging around I found this error:
With more digging, I found this:
Specifically this part:
service=media_play_pause
The iTunes media player does not implement the
play_pause
method, so this is failing. More importantly, it shouldn't be calling this service. It should be calling the discrete methods forplay
andpause
, rather than the toggle.I did some spelunking, but couldn't really figure out where it was making the decision to use this service call.