Is there a built-in way or a plugin that I can use in an Event action (not in a script) to write a message to the log (to use for debugging purposes)?
Announcement
Collapse
No announcement yet.
How to have event write a message to the log?
Collapse
X
-
Ok this is great. I was thinking about events, since I can't script. This is easy enough! ThanksTom
baby steps...starting again with HS3
HS3Pro: Z-NET & 80 Z wave Devices,
HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
System: XP on Fanless Mini-ITX w/ SSD
Comment
-
Sorry to bring back an old tread but I would like to use this simple interface to write some data to the log,similar to how send status emails. The email interface allows for macro expansion so I can get a wealth of informtion into in email in a template like format. The log function doesn't do that.
Code:&hs.WriteLog("Test","Hallway Temp = $$DSR:265:")
Code:&hs.WriteLog("Test", ExpandMacros("Hallway Temp = $$DSR:265:"))
Code:&hs.WriteLogExpand("Test", "Hallway Temp = $$DSR:265:")
It is my preference to make this a "one-liner" for ease of use within the homeseer web interface.
Comment
-
Originally posted by hucker233 View PostSorry to bring back an old tread but I would like to use this simple interface to write some data to the log,similar to how send status emails. The email interface allows for macro expansion so I can get a wealth of informtion into in email in a template like format. The log function doesn't do that.
Code:&hs.WriteLog("Test","Hallway Temp = $$DSR:265:")
Code:&hs.WriteLog("Test", ExpandMacros("Hallway Temp = $$DSR:265:"))
Code:&hs.WriteLogExpand("Test", "Hallway Temp = $$DSR:265:")
It is my preference to make this a "one-liner" for ease of use within the homeseer web interface.
Code:&hs.WriteLog("Test","Hallway Temp = " & hs.replacevariables("$$DSR:265:"))
Comment
-
I think you could also use
&hs.WriteLog("Test","Hallway Temp = " & hs.DeviceString(265))Mike____________________________________________________________ __________________
HS3 Pro Edition 3.0.0.548, NUC i3
HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti
Comment
-
Thanks for the help. This is what I settled on:
Code:&hs.WriteLog("MyLog", hs.ReplaceVariables("status = $$DSR:143:, $$DSR:144:"))
Comment
Comment