xannor / hass_py_set_state

Home Assistant Python Script to force set an entity state
The Unlicense
44 stars 14 forks source link

States of media_player. #9

Closed Lotambena closed 1 year ago

Lotambena commented 1 year ago

Can you modify it to also change the states of media player. Am using the states of media player as a sensor to detectvig media player (TV etc) is on or off. But when i turn off the tv itvtakws some time to update. With this function if the tv is turned off by HA it should update the state emmediately wuthbthis function