- Posts: 13
- Thank you received: 0
Welcome to the Allonis forum! Tell us and our members who you are, what you like and why you became a member of this site. We welcome all new members and hope to see you around a lot!
myServer6 Macro Programming - Part 2
- mshumanmd@gmail.com
- Topic Author
- Offline
- User
-
Less
More
2 months 3 weeks ago #4932
by mshumanmd@gmail.com
myServer6 Macro Programming - Part 2 was created by mshumanmd@gmail.com
I created this macro, called toggleav, which is supposed to Toggle Power for the devices based on room (i.e. don't toggle AVR if in Living Room)
Macro|
If|isEQ##{{activeroom_name_smartremote1}}##Living Room##Macro|
AV|1~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~WTF!
if|isEQ##{{activeroom_name_smartremote1}}##Theater##Macro|
AV|1~Power~Toggle!
AV|5~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~{{activeroom_name_smartremote1}}!
// fini
When I run it from Living Room, it toggles everything as if the room is Theater, even though the active room is Living Room, and testclient = Living Room. If I run it from Theater, it works properly.
Can anyone see anything wrong with this macro?
Thanks,
Mark
Macro|
If|isEQ##{{activeroom_name_smartremote1}}##Living Room##Macro|
AV|1~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~WTF!
if|isEQ##{{activeroom_name_smartremote1}}##Theater##Macro|
AV|1~Power~Toggle!
AV|5~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~{{activeroom_name_smartremote1}}!
// fini
When I run it from Living Room, it toggles everything as if the room is Theater, even though the active room is Living Room, and testclient = Living Room. If I run it from Theater, it works properly.
Can anyone see anything wrong with this macro?
Thanks,
Mark
Please Log in to join the conversation.
- aa6vh
- Offline
- User
-
Less
More
- Posts: 108
- Thank you received: 7
2 months 3 weeks ago - 2 months 3 weeks ago #4933
by aa6vh
Replied by aa6vh on topic myServer6 Macro Programming - Part 2
Where are the devices AV1, AV5, and AV15 located? If those three are in the Theater room, why are you trying to control them while in the Living room?
If not, then what devices are in the living room and which ones are they?
Also review the syntax on IF statements. Yours doesn't look correct.
I thnk it should be:
Macro|
If|isEQ##{{activeroom_name_smartremote1}}##Living Room##Macro|
AV|1~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~WTF!!
if|isEQ##{{activeroom_name_smartremote1}}##Theater##Macro|
AV|1~Power~Toggle!
AV|5~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~{{activeroom_name_smartremote1}}!!
// fini
If not, then what devices are in the living room and which ones are they?
Also review the syntax on IF statements. Yours doesn't look correct.
I thnk it should be:
Macro|
If|isEQ##{{activeroom_name_smartremote1}}##Living Room##Macro|
AV|1~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~WTF!!
if|isEQ##{{activeroom_name_smartremote1}}##Theater##Macro|
AV|1~Power~Toggle!
AV|5~Power~Toggle!
AV|15~Power~Toggle!
SetVariable|testclient~{{activeroom_name_smartremote1}}!!
// fini
Last edit: 2 months 3 weeks ago by aa6vh.
Please Log in to join the conversation.
- mshumanmd@gmail.com
- Topic Author
- Offline
- User
-
Less
More
- Posts: 13
- Thank you received: 0
2 months 3 weeks ago #4934
by mshumanmd@gmail.com
Replied by mshumanmd@gmail.com on topic myServer6 Macro Programming - Part 2
Living Room and Theater are the same room. Sometimes I like to watch TV just through the TV speakers (Living Room) and other times through the AVR (Theater).
Your syntax of the macro works. Thank you!
Your syntax of the macro works. Thank you!
Please Log in to join the conversation.
- aa6vh
- Offline
- User
-
Less
More
- Posts: 108
- Thank you received: 7
2 months 3 weeks ago #4936
by aa6vh
Replied by aa6vh on topic myServer6 Macro Programming - Part 2
Have you discovered the Allonis "Live Event Log" yet? You access it from the dashboard, using the button at the bottom of the page. It will open a separate browser page. It is very helpful in debugging issues like this.
Please Log in to join the conversation.
- mshumanmd@gmail.com
- Topic Author
- Offline
- User
-
Less
More
- Posts: 13
- Thank you received: 0
2 months 3 weeks ago #4937
by mshumanmd@gmail.com
Replied by mshumanmd@gmail.com on topic myServer6 Macro Programming - Part 2
I have not. Thank you for the advice. I've gotten the remote to work my Living Room/Theater. I think I'm going to try to get Sonos working next.
Please Log in to join the conversation.
Time to create page: 0.199 seconds