Ahh, I meant the plugin so that means I┬┤ve done it right so far
I have checked the box for the Tellstick Duo plugin ("Check to log device events").
This is what one temperature reading looks lite now if I uncheck to view all events, otherwise I only get the two similar info-rows.
(info) 16:10:39 Temperature: 22.1 C, 2011-10-17 16:10:39
(event) 16:10:39 Temperature: 22.1 C,TellStickDuo.RawEvent: class:sensor;protocol:oregon;model:EA4C;id:0xEF;temp:22.1;Duo_ID:3
(event) 16:10:39 TellStickDuo.oregon.EA4C.239.1 '22.1|2011-10-17 16:10:39'
(info) 16:10:39 Temperature: 22.1 C, 2011-10-17 16:10:39
(event) 16:10:39 Temperature: 22.1 C, TellStickDuo.RawEvent: class:sensor;protocol:oregon;model:EA4C;id:0xEF;temp:22.1;Duo_ID:3
(event) 16:10:39 TellStickDuo.oregon.EA4C.239.1 '22.1|2011-10-17 16:10:39'
Without the plugin it looks like this:
(event) 16:19:06 TellStickDuo.RawEvent: class:sensor;protocol:oregon;model:EA4C;id:0xEF;temp:22.0;Duo_ID:3
(event) 16:19:06 TellStickDuo.RawEvent: class:sensor;protocol:oregon;model:EA4C;id:0xEF;temp:22.0;Duo_ID:3
For some reason I get the readings twice but thats not because of this plugin. Anyway I clearly get a new event that i can drag to my macro, the it stops showing up in the log and in the macro it looks like this:
TellStickDuo.RawEvent: class:sensor;protocol:oregon;model:EA4C;id:0xEF;temp:22.0;Duo_ID:3
Below this i put the python script and now the result is:
(info) 16:33:24 Temperature: 22.0 C, 2011-10-17 16:33:24
(event) 16:33:24 TellStickDuo.RawEvent: class:sensor;protocol:oregon;model:EA4C;id:0xEF;temp:22.0;Duo_ID:3
(macro) 16:33:24 Python-skript
(action) 16:33:24 Python-skript
(error) 16:33:24 Traceback (most recent call last):
(error) 16:33:24 Python script "1", line 5, in <module>
(error) 16:33:24 n = eg.event.payload.split('|')
(error) 16:33:24 AttributeError: 'NoneType' object has no attribute 'split'
Thank you for responding and putting up with my limited knowledge of Eventghost!
