I can't figure out how to trigger an event based on the text in the Description device. WeatherXML had variables that I could check contains. How to do it with AK Weather? I need to turn my sidewalk snow mats on if Description contains "snow" or "flurry".
Announcement
Collapse
No announcement yet.
Trigger Event from text value?
Collapse
X
-
The typical mechanism provided by HS for text-oriented triggers is with Value Status Pairs. In essence a text string is assigned a numeric value. Different strings will have different values. A related mechanism is used to associate icons with a number. When a trigger is setup it will show the text string (Status) to the user so in general the user is unaware of the Device Value that is really being used by the HS event trigger engine.
It depends upon the plug-in developer providing support for VSP and VGP rather than just stuffing text in Device String.
Comment
-
Originally posted by Michael McSharry View PostThe typical mechanism provided by HS for text-oriented triggers is with Value Status Pairs. In essence a text string is assigned a numeric value. Different strings will have different values. A related mechanism is used to associate icons with a number. When a trigger is setup it will show the text string (Status) to the user so in general the user is unaware of the Device Value that is really being used by the HS event trigger engine.
It depends upon the plug-in developer providing support for VSP and VGP rather than just stuffing text in Device String.
If the device is viewed using the legacy Device Manager, it is much more clear. There is no stored Status text, only a populated String.
I have dozens of plug-in owned devices that only display Status and use the String exclusively. I wish it was all displayed as it was in HS3 so we could tell where the data is stored. Unfortunately we are still dealing with a few missing items under HS4 that were there for us in HS3.
HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
- Likes 1
Comment
-
Originally posted by randy View PostIf you have the Easy Trigger plugin it has a string based Trigger. The “String” is where long descriptions are stored.
I use 3 virtual devices
and 6 events
each looks to the description of the forecast day
1) How does "Snow Check" event work?
2) Your "Snow Today Off" Event starts with Manual triggered, why I would have thought it started with easytrigger?
3) One of the things I noticed is that with easytrigger it seems to only show the root device and not any of the children is there some way of getting it to show the associated children e.g. "Description [0]" or "Descr Abbr [0]",Computer: CUK Intel NUC7i7BNH
Op System: Windows10 Pro - Work Station
HS Version: HS4 Pro Edition 4.2.19.0
Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.
Comment
-
Originally posted by MNB View Post
randy, a few questions re your virtual devices and associated events.
1) How does "Snow Check" event work?
2) Your "Snow Today Off" Event starts with Manual triggered, why I would have thought it started with easytrigger?
3) One of the things I noticed is that with easytrigger it seems to only show the root device and not any of the children is there some way of getting it to show the associated children e.g. "Description [0]" or "Descr Abbr [0]",
Easy Trigger displays the full name of the device for me. I have not cleaned up the naming from when HS3 created them.
The Device
The Event
The Full list of features is listed.
Here I have changed the naming to be more HS4 specific.
HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment
-
randy, many thanxs for the examples, I need to digest the "Conditional Actions" under the Snow Check event, it took me a minute or two to figure out how to access it but was finally able to under run another event and selecting the two bottom options (wasn't totally intuitive but finally got there).
I can see from you screen shots that you have access to all of your AK Weather children devices via EasyTrigger, but I on the other had seem to only have access (via EasyTrigger) to the root AK Weather (parent) device only, however I can see via my children devices when viewed in Devices view, any ideas as to why and how to I fix it?Computer: CUK Intel NUC7i7BNH
Op System: Windows10 Pro - Work Station
HS Version: HS4 Pro Edition 4.2.19.0
Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.
Comment
-
Originally posted by MNB View Postrandy, many thanxs for the examples, I need to digest the "Conditional Actions" under the Snow Check event, it took me a minute or two to figure out how to access it but was finally able to under run another event and selecting the two bottom options (wasn't totally intuitive but finally got there).
I can see from you screen shots that you have access to all of your AK Weather children devices via EasyTrigger, but I on the other had seem to only have access (via EasyTrigger) to the root AK Weather (parent) device only, however I can see via my children devices when viewed in Devices view, any ideas as to why and how to I fix it?
HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by randy View Post”Snow Check” is a single recurring Trigger Event. I have six Events (on and off for snow today, snow tonight and snow tomorrow) they are all manually triggered and run from this single recurring Event. When we get Conditional Actions, this can be consolidated to a single event.
Comment
-
Originally posted by alexbk66 View Post
I could possibly add some trigger in the plugin to simplify your setup, if you could provide some "requirements specification".
HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by randy View PostFor these Events, I am just looking for snow to be in the forecast for today, tonight or tomorrow. This is used to turn our satellite dish heater. The only Trigger I need is if Snow is forecast in the next 24 hours.
[EDIT]
BTW, note that in the main root device I truncate the description string (100 chars I think)
Comment
-
Originally posted by alexbk66 View Post
So possibly a trigger "If description contains"?
[EDIT]
BTW, note that in the main root device I truncate the description string (100 chars I think)
HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon
Comment
-
Originally posted by randy View PostThat is essentially what I do now. Easy Trigger is used for a string match for the description containing “snow”
Comment
-
Originally posted by randy View PostEasy Trigger takes some home to populate, though usually within 15 minutes or so. Try restarting Easy Trigger or HomeSeer and see if you get more choices.
We (east coast) had snow for today and of course your Snow Today is indicating a snow condition. I have to say using the conditional actions really shortens the event, once I grasp what and how it works.Computer: CUK Intel NUC7i7BNH
Op System: Windows10 Pro - Work Station
HS Version: HS4 Pro Edition 4.2.19.0
Plug-Ins: AK Weather 4.0.5.25,APCUPSD 3.3.2.3,BLBackup 2.0.63.0,BLEditor 2.0.11.0,BLGData 3.0.55.0,BLOccupied 2.0.28.0,BLShutdown 1.0.6.0,Blue-Iris 3.1.3.33206,Device History 3.2.0.2,EasyTrigger 3.0.0.76,Harmony Hub 4.0.14.0,iRobot 5.22.41.1,JowiHue 4.0.8.7,Nest 3.0.0.34,NetCam Plugin 1.0.0.5,PHLocation2 3.0.0.64,Pushover 4.0.10.0,Random 3.0.0.2,Restart 1.0.0.7,Ring 1.0.0.9,SDJ-Health 3.1.1.3,Sonos 3.1.0.59,Sonos4 4.0.1.12,UltraCID3 3.0.6681.34300,UltraMon3 3.0.6554.33094,UltraNetCam3 3.0.6413.20219,Unifi 4.0.32.0,Zigbee 4.0.11.0,Z-Wave 4.0.3.0, and Jon00 scripts.
Comment
Comment