Re: TellStick Duo
Posted: Thu Feb 05, 2015 5:18 pm
I only see the Nexas so far. Both the buttons themselves and the Nexa signals that the RFXtrx is sending out.
Code: Select all
19:02:12 OpenNetHomeServer.['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1070', 'FineOffset.Temp', '246', 'Value', ''] "['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1070', 'FineOffset.Temp', '246', 'Value', '']"
19:02:13 OpenNetHomeServer.['event', 'Oregon_Message', 'Direction', 'In', 'Oregon.Channel', '4', 'Oregon.Id', '23', 'Oregon.LowBattery', '0', 'Oregon.Moisture', '32', 'Oregon.SensorId', '7456', 'Oregon.Temp', '199', 'Value', ''] "['event', 'Oregon_Message', 'Direction', 'In', 'Oregon.Channel', '4', 'Oregon.Id', '23', 'Oregon.LowBattery', '0', 'Oregon.Moisture', '32', 'Oregon.SensorId', '7456', 'Oregon.Temp', '199', 'Value', '']"
19:02:17 OpenNetHomeServer.['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1089', 'FineOffset.Temp', '-2', 'Value', ''] "['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1089', 'FineOffset.Temp', '-2', 'Value', '']"
19:02:19 OpenNetHomeServer.['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1170', 'FineOffset.Temp', '-6', 'Value', ''] "['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1170', 'FineOffset.Temp', '-6', 'Value', '']"
19:02:24 OpenNetHomeServer.['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1159', 'FineOffset.Temp', '84', 'Value', ''] "['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1159', 'FineOffset.Temp', '84', 'Value', '']"
19:02:30 OpenNetHomeServer.['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1195', 'FineOffset.Temp', '-186', 'Value', ''] "['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1195', 'FineOffset.Temp', '-186', 'Value', '']"
19:02:39 OpenNetHomeServer.['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1037', 'FineOffset.Temp', '200', 'Value', ''] "['event', 'FineOffset_Message', 'Direction', 'In', 'FineOffset.Identity', '1037', 'FineOffset.Temp', '200', 'Value', '']"
19:02:44 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '3687735', 'NexaL.Button', '6', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '3687735', 'NexaL.Button', '6', 'NexaL.Command', '0', 'Value', '']"
19:02:45 Main.NetHome|In|NexaL.Address|3687735|NexaL.Button|6|NexaL.Command|0|Value||
19:02:45 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', '']"
19:02:45 Main.NetHome|In|NexaL.Address|7375470|NexaL.Button|12|NexaL.Command|0|Value||
19:02:45 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '3687735', 'NexaL.Button', '6', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '3687735', 'NexaL.Button', '6', 'NexaL.Command', '0', 'Value', '']"
19:02:45 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', '']"
19:02:46 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '8849574', 'NexaL.Button', '25', 'NexaL.Command', '1', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '8849574', 'NexaL.Button', '25', 'NexaL.Command', '1', 'Value', '']"
19:02:46 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', '']"
19:02:46 Main.NetHome|In|NexaL.Address|3687735|NexaL.Button|6|NexaL.Command|0|Value||
19:02:46 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '3687735', 'NexaL.Button', '6', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '3687735', 'NexaL.Button', '6', 'NexaL.Command', '0', 'Value', '']"
19:02:46 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '7375470', 'NexaL.Button', '12', 'NexaL.Command', '0', 'Value', '']"
19:02:46 Main.NetHome|In|NexaL.Address|7375470|NexaL.Button|12|NexaL.Command|0|Value||
19:02:47 OpenNetHomeServer.['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '20388742', 'NexaL.Button', '25', 'NexaL.Command', '1', 'Value', ''] "['event', 'NexaL_Message', 'Direction', 'In', 'NexaL.Address', '20388742', 'NexaL.Button', '25', 'NexaL.Command', '1', 'Value', '']"
19:02:47 Main.NetHome|In|NexaL.Address|8849574|NexaL.Button|25|NexaL.Command|1|Value||
19:02:48 Main.NetHome|In|NexaL.Address|3687735|NexaL.Button|6|NexaL.Command|0|Value||
19:02:49 Main.NetHome|In|NexaL.Address|20388742|NexaL.Button|25|NexaL.Command|1|Value||
19:02:56 OpenNetHomeServer.['event', 'Oregon_Message', 'Direction', 'In', 'Oregon.Channel', '4', 'Oregon.Id', '23', 'Oregon.LowBattery', '0', 'Oregon.Moisture', '32', 'Oregon.SensorId', '7456', 'Oregon.Temp', '199', 'Value', ''] "['event', 'Oregon_Message', 'Direction', 'In', 'Oregon.Channel', '4', 'Oregon.Id', '23', 'Oregon.LowBattery', '0', 'Oregon.Moisture', '32', 'Oregon.SensorId', '7456', 'Oregon.Temp', '199', 'Value', '']"Btw where do I turn off that print command? It's more than enough to have the event.13:53:07 NetHome.Oregon|23|4| 'Temp|20.3|Hum|35|Batt|0|'
13:53:25 NetHome.Oregon|245|2| 'Temp|23.1|Hum|38|Batt|0|'
13:53:26 ['In', 'FineOffset.Identity', '1070', 'FineOffset.Temp', '243', 'Value', '', '']
13:53:26 NetHome.FineOffset|1070 'Temp|24.3'
13:53:32 ['In', 'FineOffset.Identity', '1089', 'FineOffset.Temp', '56', 'Value', '', '']
13:53:32 NetHome.FineOffset|1089 'Temp|5.6'
13:53:34 System.Idle
13:53:35 ['In', 'FineOffset.Identity', '1170', 'FineOffset.Temp', '22', 'Value', '', '']
13:53:35 NetHome.FineOffset|1170 'Temp|2.2'
13:53:36 ['In', 'FineOffset.Identity', '1159', 'FineOffset.Temp', '83', 'Value', '', '']
13:53:36 NetHome.FineOffset|1159 'Temp|8.3'
13:53:48 ['In', 'FineOffset.Identity', '1195', 'FineOffset.Temp', '-188', 'Value', '', '']
13:53:48 NetHome.FineOffset|1195 'Temp|-18.8'
13:53:50 NetHome.Oregon|23|4| 'Temp|20.3|Hum|35|Batt|0|'
13:53:53 System.ClipboardChanged
13:53:53 System.UnIdle
13:53:54 ['In', 'FineOffset.Identity', '1037', 'FineOffset.Temp', '207', 'Value', '', '']
13:53:54 NetHome.FineOffset|1037 'Temp|20.7'
13:54:14 ['In', 'FineOffset.Identity', '1070', 'FineOffset.Temp', '242', 'Value', '', '']
13:54:14 NetHome.FineOffset|1070 'Temp|24.2'
13:54:20 ['In', 'FineOffset.Identity', '1089', 'FineOffset.Temp', '56', 'Value', '', '']
13:54:20 NetHome.FineOffset|1089 'Temp|5.6'
Code: Select all
print fineOffsetMsg
Code: Select all
16:42:17 Tellstick.Oregon|23|4| 'Temp|20.0|Hum|36|Batt|0|'Code: Select all
16:42:17 Exception in thread Tellstick:
16:42:17 Traceback (most recent call last):
16:42:17 File "threading.pyc", line 532, in __bootstrap_inner
16:42:17 File "C:\Program Files (x86)\EventGhost\plugins\NetHomeServer\__init__.py", line 318, in run
16:42:17 self.OregonMessage(oregonMsg)
16:42:17 File "C:\Program Files (x86)\EventGhost\plugins\NetHomeServer\__init__.py", line 375, in OregonMessage
16:42:17 oregonTemperature = float(oregonMsg[12])
16:42:17 IndexError: list index out of range
16:42:17 It is not so strange, it has a natural explanation. All values from sensors like temperature and humidity is not part of the event.suffix, it is always provided in the event.payload. Otherwise you would have to add events in your macros for all possible values and that would be a mess.Another strange thing
Code: Select all
def eventHandler(pload):
hum_level = int(pload)
if hum_level == 63:
eg.StopMacro()
eg.plugins.EventGhost.ShowOSD(u'Stopped macro', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0, False)
else:
pass
eventHandler(eg.event.payload)
Code: Select all
def eventHandler(pload):
hum_level = int(pload)
if hum_level == 58:
eg.StopMacro()
eg.plugins.EventGhost.ShowOSD(u'Stopped macro', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 0, (0, 0), 0, 3.0, False)
else:
pass
eventHandler(eg.event.payload)
You mean to avoid having noise that can drown out other commands, or is there another reason? I have my heating scripts (which mostly runs on the RFXtrx) set to send on every time, so I get commands every minute or two for just about everything.krambriw wrote:[quote3) Eventually consider to build in a status memory in the scripts to avoid that the commands are repeated every minute when the event arrives (this is a second step we can discuss when you have the first part)