Interesting. 20 more chars
Right. In a sense, itās just end-user proofing
ā¦Iām not in the UK⦠and not experiencing weirdness⦠at least not with ST
OK, sorry, time for me to go have a beer or somethingā¦
I think this is a post we can ALL like
Everything was working fine till today, at 12:16 am i got a hub inactive message, 12:18 hub active then at 7:30 am with a 5 minute random delay first rule didnt happen, another rule at 8:15 nothing.
You could look in the IDE to see the scheduled jobs for each rule that uses time. Odds are, those schedules were broken. Just hitting Done in the rule should refresh the schedule.
Yeah Iām sure at this point it was something ST related because I didnāt lose power (checked old alarm clock, stove clock, and microwave clock were all fine) but weird that it also did some weird stuff to RM as far as rule conditions being blank when you opened them up or showing old conditions (both circumstance I had to go into define a rule to see this). I went into all my rules and opened them and clicked done once I cleared everything.
Can anyone figure out why this rule never activates?
Trigger: Smartfan iPhone present (Unless I am dreaming I thought there was an option for arrival and not just present)
Conditions: Time between 4:30pm and 8:30pm
Media Room Inactive
Rule: Time and Media Room inactive conditions
True: On Media Room Lamp.
So under the iOS app under activity I see in the logs my iPhone arriving yet the rule doesnāt activate when I enter that room. Any ideas why?
Edit: I just want this rule to activate once when I get home and walk into that room. Not everytime. Thats why the trigger is my iPhone is present, but I swear it used to say arrival.
Could you look at the bottom of the main page of Rule Machine, and tell me what version it shows there?
Does not show what version in my iPhone app but on IDE rule machine version is
Version 1.6.3b 26 Dec 2015
OK. You are completely out of date. You need to update Rule Machine and Rule, as per below. Your existing rules should be fine after you update.
Rule Machine github: https://github.com/bravenel/Rule-Trigger/blob/master/smartapps/bravenel/rule-machine.src/rule-machine.groovy. Save and Publish for me.
Rule github: https://github.com/bravenel/Rule-Trigger/blob/master/smartapps/bravenel/rule.src/rule.groovy. Save and Publish for me.
Please let me know if that solves the problem.
Will update now. But please tell me Iām not crazy and there was an arrival option instead of presence? I swear I even posted about it in this thread earlier trying to get this rule to work and turn off the lamp automatically if I donāt end up entering the room.
Yes, you are correct. But, there was a bug that made it say present instead of arrives.
I updated both and saved and published both. I changed the trigger in the app to arrives. I guess the earliest I can check to see if it works now will be tomorrow when I āarriveā again and walk into that room.
Firstly, Bruce you are an absolute legend, this makes Smartthungs so much more usable for me!
Now, onto the request
I am trying to use this to play some favourites have stored on my Sonos, but i canāt work out how to do that, i have created a custom trigger, but iām not sure what to put in the playTrack() string to make it play. I have taken a look at the Sonos Mood Music smartapp, and from what i can tell it is sending the entire track object it receives and stores from the Sonos, which i a large object with a load of keys like URI, Track Name e.t.c
Now iāve tried copy and pasting this datas into the text field in the custom trigger, but it doesnāt actually do anything on the Sonos.
Here is what i am sending, anyone got any ideas? I can create a custom switch and then trigger that from Rule Machine and in turn use that to trigger multiple Speaker Mood Music smart apps, but i am trying to get away from that messy structure and move everything into Rule Machines.
Thanks
Gareth
[trackUri:hls-radio://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_low/ak/bbc_radio_two.m3u8, station:BBC Radio 2, status:playing, album:, trackNumber:1, enqueuedUri:x-sonosapi-stream:s24940?sid=254&flags=32&sn=0, uri:x-sonosapi-stream:s24940?sid=254&flags=32&sn=0, transportUri:x-sonosapi-stream:s24940?sid=254&flags=32&sn=0, level:, name:BBC Radio 2, artist:, trackMetaData:<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="sonos.com-http:*:application/octet-stream:*">x-sonosapi-stream:s24940?sid=254&flags=32&sn=0</res><r:streamContent></r:streamContent><r:radioShowMd>Bob Harris Sunday,p49426</r:radioShowMd><upnp:albumArtURI>/getaa?s=1&u=x-sonosapi-stream%3as24940%3fsid%3d254%26flags%3d32%26sn%3d0</upnp:albumArtURI><dc:title>x-sonosapi-stream:s24940?sid=254&flags=32&sn=0</dc:title><upnp:class>object.item</upnp:class></item></DIDL-Lite>, metaData:<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><dc:title>BBC Radio 2</dc:title><upnp:class>object.item.audioItem.audioBroadcast</upnp:class><desc id="cdudn" nameSpace="urn:schemas-rinconnetworks-com:metadata-1-0/">SA_RINCON65031_</desc></item></DIDL-Lite>]
Okay to update do you just copy the paste the new code? Into your IDE ? Meaning delete the old code and paste the new into IDE ? Also if I do this will I have to reconfigure the things I already have setup in the app part ? Sorry Im a noob to Smartthings been in home automation for 10 plus years, but this is my first time updating a app in Smartthings. Thank for any help
Yes delete the old code, and copy and paste the new code and save and publish for both codes. No you wonāt have to input your old rules again. They will still be there.
Thank you for the help !
If you want to play with it, you can create a Simulated Presence in the IDE, My Devices, New Device. Then, you substitute that in your Rule. You can use the mobile app to make the virtual presence come and go. Very cool and fun to play with.