I’ve recently been diving into the world of smart home automation, and I must say, it’s been an exciting journey! One of my latest projects involved integrating a Z-Wave wall plug with my Logitech Harmony Hub to automate my Yamaha AV Receiver. Let me walk you through my experience, in case you’re tackling something similar.
The Goal
My objective was straightforward: I wanted to automate the process of turning on my Yamaha AV Receiver using a Z-Wave wall plug and then starting a specific activity on my Harmony Hub. This would allow me to seamlessly switch to listening to the radio without manually interacting with multiple devices.
The Setup
Here’s a breakdown of the components and configurations I used:
Items Configuration
plaintext
Switch Z_way_switch_WallPlug3 “WallPlug3” (group_groundfloor_livingroom_switch_wallplug) { channel=“zway:zwayDevice:smarthome:3:switchPowerOutlet-ZWayVDev_zway_3-0-37” }
String HarmonyWohnzimmerActivity “Current Activity [%s]” { channel=“harmonyhub:hub:wohnzimmer:currentActivity” }
Sitemap Configuration
plaintext
Text item=HarmonyWohnzimmerActivity
Switch item=HarmonyWohnzimmerActivity label=“Power Off” mappings=[ PowerOff=“PowerOff”, Radio=“Radio”, Film=“Film”, Fernsehen=“Fernsehen” ]
Rule Configuration
plaintext
rule “switch av receiver onoff”
when
Channel “harmonyhub:hub:wohnzimmer:activityStarting” triggered Radio
then
sendCommand(Z_way_switch_WallPlug3, ON)
createTimer(now.plusSeconds(120), [ | sendCommand(HarmonyWohnzimmerActivity, Radio) ])
logInfo(“Harmony”, “Hub is setting to Radio…”)
end
The Challenge
Initially, everything seemed to be in place. The wall plug was correctly configured, and the Harmony Hub was set up to recognize the activity. However, when I triggered the activity, the Yamaha receiver didn’t turn on as expected. The Harmony Hub activity simply wouldn’t start, leaving me puzzled.
The Solution
After some trial and error, I realized the issue was with the timing between turning on the wall plug and starting the Harmony activity. The wall plug needed a bit more time to ensure the receiver was fully powered on before the activity could start. Adjusting the timer duration from 120 seconds to 150 seconds did the trick. Now, the sequence flows seamlessly:
- The wall plug turns on the Yamaha receiver.
- After a brief delay, the Harmony Hub activity starts, switching to the radio.
Reflections
This project taught me the importance of timing in automation workflows. Even a small delay can make a significant difference in ensuring devices communicate effectively. It also highlighted the value of thorough testing and incremental adjustments when troubleshooting.
If you’re working on a similar project, I encourage you to experiment with timing settings and verify each component’s functionality step by step. Happy automating! ![]()