Jump to content
C4 Forums | Control4

Macro to execute 5 wakeups agents, not working


Zuhair

Recommended Posts

@alanchow

  • I created 2 wake agents.
  • I created a macro which is being triggered by Schedule It driver, when the driver execute the macro, the macro contains 5 commands:
    • Execute wakeup agent 1 on room1
    • Execute wakeup agent 1 on room2
    • Execute wakeup agent 2 on room3
    • Execute wakeup agent 2 on room4
    • Execute wakeup agent 2 on room5
  • The macro is successfully being executed by the driver, but only the last 2 rooms is running, I tried shuffling the lines up/down but only execute the last 2 rooms.

 

I'm pretty sure that this the case of this is not Schedule It driver.

Can anyone please help?

This is wakeup agent 1

59ac39e10c239_wakeupagent2.thumb.png.79d749f47c4d6ce2b3bb3d9d90ab40ea.png

 

This is wakeup agent 2

 

59ac39e537458_wakeupagent1.thumb.png.05446a72da38ba5ae5b87b1081308035.png

 

This is the macro

 

macro.png.26c82e259328b17108aa2d13f1d824e7.png

Link to comment
Share on other sites


@alanchow
  • I created 2 wake agents.
  • I created a macro which is being triggered by Schedule It driver, when the driver execute the macro, the macro contains 5 commands:
    • Execute wakeup agent 1 on room1
    • Execute wakeup agent 1 on room2
    • Execute wakeup agent 2 on room3
    • Execute wakeup agent 2 on room4
    • Execute wakeup agent 2 on room5
  • The macro is successfully being executed by the driver, but only the last 2 rooms is running, I tried shuffling the lines up/down but only execute the last 2 rooms.
 
I'm pretty sure that this the case of this is not Schedule It driver.
Can anyone please help?
This is wakeup agent 1
59ac39e10c239_wakeupagent2.thumb.png.79d749f47c4d6ce2b3bb3d9d90ab40ea.png
 
This is wakeup agent 2
 
59ac39e537458_wakeupagent1.thumb.png.05446a72da38ba5ae5b87b1081308035.png
 
This is the macro
 
macro.png.26c82e259328b17108aa2d13f1d824e7.png
Do you have digital media in all rooms?

Sent from my Nexus 6P using Tapatalk

Link to comment
Share on other sites

Thank you @knowitall / @South Africa C4 user for the reply, I forgot to mention that I'm Composer HE beginner and I'm facing difficulties with the lack of the advance documentation.

The reason I'm using wake up agent in this strange way I tried using media scene and added the 6 rooms (zones) each with it's volume preference but it played the media in all 6 zones at 100% volume.

Shall I create one media scene for every room (zone)? Or one media scene per room (zone)?

Should the script look like this?

  • Activate  media scene 1
  • Execute wake in room 1
  • Activate  media scene 2
  • Execute wake in room 2
  • Activate  media scene 3
  • Execute wake in room 3
  • Activate  media scene 4
  • Execute wake in room 4
  • Activate  media scene 5
  • Execute wake in room 5
  • Activate  media scene 6
  • Execute wake in room 6

Or

  • Activate  media scene that include all rooms (zones)
  • Execute wake in room 1
  • Execute wake in room 2
  • Execute wake in room 3
  • Execute wake in room 4
  • Execute wake in room 5
  • Execute wake in room 6
  • deactivate  media scene

What are other suggestions if I skip the wakeup agent?

 

Link to comment
Share on other sites

Use a media scene or you can set the desired default volume in each room by going to the miscellaneous tab under room properties. There you can set the default volume for audio and video separately.

 

Programmatically, this can be done for each room by going to programming and on right side select the first room. Press right on the keyboard twice to reveal a sub menu. Select CURRENT_VOLUME

 

Then set the volume to desired level and drag green arrow over to centre.

 

923dcc10a180e2e2ffd54ba2d7482278.png

 

 

Happy Automating!!

 

Link to comment
Share on other sites

image.png.ce5a7517b17cc034c1818aac976fae3a.png

Just found out my NAS is offline, so i get to mess with that now

image.png.423bbf1c57facbaef88125e2b7cd5641.png

But as pictured above goto the room you want to start in and select the track, then activate the media scene based off that room, created a 10 minute timer to dactivate the scene when complete.

 

image.thumb.png.9237c8dd639e2fa3e97adf0233018aa8.png

If you really want to get complex, you can use the snapshot driver to revert everything back to what it was doing prior to the event.

(removed extra picture, which turned out to be the wrong picture, so i put the right one back in)

 

Link to comment
Share on other sites

Your code looks fine... I would change the delays to 500ms not 50ms. Too short a delay may result in commands not happening although I don't see why that would cause music to loop.

I assume the timer is 10 minutes and there is no event firing off on starting the timer and that you only run the macro once?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.