My thoughts would be to use a “broker” like Home Assistant (HASS), it simplifies things (no coding required) as supports everything:
HASS is in my future so I really only want HASS talking to the WeMo as it helps with tracking state, if only one “thing” is actually turning my plugs on/off, Alexa, HASS, Roon could all do it but best to “route” requests through HASS.
@Marcel_van_der_Veldt kindly develops roon-hass but it looks like he hasn’t logged on here since last August. His roon-hass github hasn’t been updated in 14 months (he has been active this month on other github projects), not being a programmer I’m not sure if Standby would need to be added to roon-hass or is roon-hass just a python wrapper around anything that the Roon API decides to expose, a translator between HASS and ROON.
@danny are you using Home Assistant, if you could buy a smart plug that would be cool, they’re pretty cheap and super useful?
Does anyone have a document on the “Auto Sleep” workflow, I guess you have to add a “HASS_amplifier” (is that an extension?) device to Roon that supports the standby feature, then I set “Auto Sleep” to 10 minutes, after 10 minutes of no music Roon signals through the API to HASS that it should switch the plug off?
I currently am using an volume/source/standby extension for my speakers that controls them over RS232. The audio part of the zone is an RPi + HAT, the volume/source/standby is that extension. The RPi is running Roon Bridge + the extension.
In Roon, I basically have a RAAT compatible full-featured network audio endpoint.
Auto-sleep works with the ‘zone’, which supports source and standby like a nice Roon Ready device would, but via this setup of the extension.
I’ve been debating adding it… just need some help extending an old Lutron Homeworks QS system before I go down that road.
For tinkerers, MQTT extension would be a good way to do a HASS integration, no?
For non-tinkerers, you want a direct connection to the Wemo – no HASS or MQTT brokers
picked up a Wemo Mini Smart Plug just now… hopefully itll show up next week and wont be too much of a pain to get working:
If a Roon volume extension could publish MQTT to an MQTT server topic that HASS was subscribed to…
MQTT support on HASS is well documented:
I’m by no means an expert but it would be trivial (trigger > condition > action is how HASS configures it) to have a remote.send_command happen based on an MQTT message coming from Roon.
@danny Just thought I’d chip in here. My PR to Home Assistant integrating Marcels’s Roon extension has just been merged - so release 0.115 of home assistant will have Roon supported without needing a custom addition.
My main reason for wanting this is that one of my roon zones is connected to a tube power amplifier, which is connected to a WeMo power switch.
So I have an automation set up which detects when that zone starts playing, it then pauses the zone, turns on the power amp, waits for the tubes to warm up, and then unpauses the player.
It also changes the colour of the Philips Hue light over the amplifier to a ‘waiting’ colour and then a ‘working’ colour so it’s a bit more obvious what’s going on.
It turns off the power amp (and the Philips hue) after the roon zone has been idle for 5 minutes.
Having persistent usb players would allow me to do something similar with other zones (I usually try to keep my DACs turned off when the system isn’t playing to save power).
Would be happy to add a ‘sleep’ status to the hass/roon integration if it doesn’t already work!
No if Roon removes a device, HASS will mark it as disabled.
It depends on the device. Most USB connected devices are disabled when turned off (I have a Musical Fidelity M6DAC which can be switched to standby - in that state it keeps the USB connection alive - but it is the exception).
I have slightly changed my setup to use ropieee AES and SPDIF endpoints to send to the DACs. In that case the DAC being powered down doesn’t stop the endpoint trying to send music. Of course it means I need the ropieee devices powered on all the time.
I have a script that notices a device is playing, pauses it for a few seconds, turns the DAC on - and then unpauses playback.