Hi, I am another iRule to Simple Control convert. I have almost everything working with Simple control but I am struggli — A member replied: “I did not have any success combining custom commands with the predefined ones. i think you can only have one or the other.”
Hi, I am another iRule to Simple Control convert.
I have almost everything working with Simple control but I am struggling with one of my custom devices. My Yamaha receiver has 4 zones. The built-in definitions only cover zone 1 & 2. I have gone through the DDK documentation and added custom codes. However, the codes for the Yamaha are XML and I think I have the formatting messed up. Has anyone else run into this? Below is what the config looks like:
<dict>
<key>brand</key>
<string>Yamaha</string>
<key>cat</key>
<string>Zone 3</string>
<key>codes</key>
<dict>
<key>POWER OFF</key>
<string>POST /YamahaRemoteControl/ctrl
Content-Type: text/xml
<YAMAHA_AV cmd="PUT"><Zone_3><Power_Control><Power>Standby</Power></Power_Control></Zone_3></YAMAHA_AV></string>
<key>POWER ON</key>
<string>POST /YamahaRemoteControl/ctrl
Content-Type: text/xml
<YAMAHA_AV cmd="PUT"><Zone_3><Power_Control><Power>On</Power></Power_Control></Zone_3></YAMAHA_AV></string>
</dict>
<key>method</key>
<string>http</string>
<key>type</key>
<integer>16</integer>
</dict>
The raw XML is:
<YAMAHA_AV cmd="PUT"><Zone_3><Power_Control><Power>On</Power></Power_Control></Zone_3></YAMAHA_AV>
BBEdit wont save the file unless I escape the characters.
Thanks!
- Brad