Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I think this approach makes sense. I've been using the brute force method to do this by just going into each of my "activities" and adding the proper commands for each device's power/input state. This works fine because I'm lucky enough that every device in my system has discrete on/off commands, but this method will fall apart for anyone who has a device that relies on a power toggle. Your way is better.Here is the macro code I've been working on it's still work in beta and needs tweaking. But the basic idea is a harmony like activitys so when
I start a source it turns everything I need on and turn off what don't need and switches the inputs around only doing what is needed. I'm hoping to be able to copy and paste this into what ever scenes I want and then just edit the varables to match the activty
Code://Power Commands! //! //conditionaly turns on TV and Sets varable that the TV is on! if|IsNE##{{IR-SamsungTV_Power}}##OFF##SetVariable|IR-SamsungTVPower~ON!Control|2~SendIR~Samsung-Most Models~POWER ON! //conditionaly turns on av reciver if not on! if|IsNE##{{av_47_power}}##1##AV|47~Power~On! //conditionaly turns on av reciver! if|IsNE##{{av_49_power}}##off##AV|49~Power~On! //conditionaly turns on shield if not on! if|IsNE##{{IR-Xbox1_Power}}##OFF##SetVariable|IR-Xbox1_Power~OFF!2~SendIR~Microsoft-Xbox One~POWER OFF! // inputs commands! //! //conditionaly changes Tv input and sets varable! if|IsNE##{{IR-SamsungTV_Input}}##HDMI3##SetVariable|IR-SamsungTV_Input~HDMI3!Control|2~SendIR~Samsung-Most Models~INPUT HDMI 3! //conditionaly changes av reciever input! if|IsNE##{{av_47_input}}##AUX2##AV|47~Source~Aux2!
What do you guy think??
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Dave probably has a more eloquent solution, but that sure sounds like a myServer Automation Event. Maybe you could lace that in.couldn't find, but is there a way to
//waits for varable to be true before running command with timeout!
wait|{{varable}}##true#command|action!
//varable for must be true for an amount of time before action is taken!
for|{{time}}##{{varable}}##true##command|action!
thanks
Please Log in or Create an account to join the conversation.