1
0
mirror of https://github.com/Adam-Ant/home-assistant synced 2024-11-14 15:36:22 +00:00
home-assistant/ext_scripts/alarm_off.py

11 lines
172 B
Python
Raw Normal View History

2016-11-30 14:50:36 +00:00
import mpd
client = mpd.MPDClient()
client.connect("192.168.1.62",6600)
client.stop()
client.clear()
client.random(0)
client.consume(0)
client.close()
client.disconnect()