I have the following rule defined. When motion is detected, the input value of the receiver should be set to “AUDIO3”. When testing the receiver is turned on, but the input is not changed. What’s wrong?
rule "BePod Receiver ON and select AUDIO3 input when motion"
when
Item mot_BePod_MeetingRoom changed to ON
then
yamahareceiver_yamahaAV_468a2766_power.sendCommand(ON)
yamahareceiver_yamahaAV_468a2766_input.sendCommand("AUDIO3")
end
This is the log
Rule ‘BePod Receiver ON and select AUDIO3 input when motion’: An error occurred during the script execution: The name ‘AUDIO3’ cannot be resolved to an item or type.
When I change it manually in PaperUI, I see the following in the event log
Item ‘yamahareceiver_yamahaAV_468a2766_input’ received command AUDIO3
So I guess that Scott is right. The receiver didn’t have the time to power up. Can I set a “sleep” in the rules so that the changing of the input is only triggered after 20sec?
If Item yamahareceiver_yamahaAV_468a2766_input is String - may be you should use yamahareceiver_yamahaAV_468a2766_input.postUpdate("AUDIO3") instead of .sendCommand?