TellStick Duo

Questions and comments specific to a particular plugin should go here.
jenno2001
Posts: 6
Joined: Wed Mar 04, 2015 12:32 pm

Re: TellStick Duo

Post by jenno2001 » Thu Jan 28, 2016 12:36 pm

Hi,
I've had some great success using Eventghost and appreciate all the help I've had from Forum Posts.
I'm not a developer so apologies for my newbie query.
I get all events listed for my Oregan Sensor, I now want to be more selective and have configured for Monitor Change only events. However I still get all events.
By adding some "print" I have followed the plugin code to this section at Line 519.

Code: Select all

    def SaveOregonTHSensor(self, msg, m_key):
        #Make status data persistent if it has changed
        m = msg
        #print 'm: ', m
        tr_e = False
        try:
            if msg != self.sensor_state_memory[m_key]:
                self.sensor_state_memory[m_key] = msg
            tr_e = True
Am I correct in thinking that "tr_e = True" should be within the "if" indent of the "try:"?

Code: Select all

        except KeyError:
            if self.bDebug:
                print self.text.keyAdded
            self.sensor_state_memory[m_key] = msg
            tr_e = True
From my testing it seems to work but I'm not sure if this is just a coincidence and that I may be impacting other logic.
Many thanks for looking at this
PJ

krambriw
Plugin Developer
Posts: 2569
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: TellStick Duo

Post by krambriw » Thu Jan 28, 2016 5:16 pm

Dear PJ,

Thank you for your report!

The code was actually intentionally written like that because I had in mind that every event from the sensor should create an EG event. However, you can have the modification in your version if you prefer. What will happen is that there will only be an event created in EG when it is different to the previous one.

Thank you for your testing,
Walter
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons

jenno2001
Posts: 6
Joined: Wed Mar 04, 2015 12:32 pm

Re: TellStick Duo

Post by jenno2001 » Sat Jan 30, 2016 3:26 pm

Many thanks for confirming your "by design" Walter.
I have crudely added some timers to both the TellstickDuo and ClimateDataCalculation plugins to reduce the amount of Log, but at the same time allow me to write some rules for managing my Home Heating. All of this from reading your helpful responses to others and your code.
I still have to work out how to store status values for restart/failover as I read eg.globals should be steered clear of, started to look at managing persistent data - I'll get there.

Don't know if there is a process for closing out queries or posts, if there is could you please oblige.

Thanks again.
PJ

tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: TellStick Duo

Post by tjabas » Sun Feb 07, 2016 6:33 pm

Hi!

this is my first question in this forum.

im using a tellstick duo and eventghost, i use the toggle on/off function on one of the switches, but it switches back so off to fast, is it possible to delay the on/off toggle for about 3 seconds?
so when i push on och the button, it will switch to off after 3 seconds, not emideately as it does now.

thank you

krambriw
Plugin Developer
Posts: 2569
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: TellStick Duo

Post by krambriw » Mon Feb 08, 2016 9:52 am

Hello,
The use case is relevant. I have added a new action (ToggleOnOffWithTimer) to keep the compatibilty with existing user configurations.
Skärmklipp.JPG
Updated version uploaded & available
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons

tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: TellStick Duo

Post by tjabas » Tue Feb 09, 2016 4:21 am

Thank you very much, really apreciate it.
But how do i install it?

bongolf
Experienced User
Posts: 58
Joined: Tue Jan 19, 2010 12:37 pm

Re: TellStick Duo

Post by bongolf » Thu Feb 11, 2016 6:04 pm

When building an arduino-sensor I saw that the Oregon-Protocol has a flag for battery status.
I can see that the "packet" the sensor sends out looks different when the flag is set, but in Eventghost the event looks the same.
Would it be possible the get support for the battery-flag in this plugin?
Or is it something that is not supported in the Tellstick?

krambriw
Plugin Developer
Posts: 2569
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: TellStick Duo

Post by krambriw » Thu Feb 11, 2016 8:57 pm

When the plugin first was written, battery status flag was not supported by the Telldus firmware, it was added in later version and I have not yet bothered to consider it. I will check and see if it can be detected & presented

BR
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons

krambriw
Plugin Developer
Posts: 2569
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: TellStick Duo

Post by krambriw » Fri Feb 12, 2016 5:32 am

Battery status is unfortunately not possible to indicate, it is not supported by the library used (TelldusCore.dll)
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons

bongolf
Experienced User
Posts: 58
Joined: Tue Jan 19, 2010 12:37 pm

Re: TellStick Duo

Post by bongolf » Fri Feb 12, 2016 9:53 am

Ok, thanks for looking.
I had my hopes up after reading this blogpost (but it was only for Tellstick Live):
http://developer.telldus.com/blog/2015/2

Perhaps its time to get the RFXtrx...

Henrik4223
Posts: 47
Joined: Fri Mar 04, 2016 10:18 am

Re: TellStick Duo

Post by Henrik4223 » Wed Apr 06, 2016 4:36 pm

I just bought two Proove temperaturesensors that show up perfectly in Telldus live but they dont show up in eventghost.

Are they not supported by the plugin?

Best regards
A very happyuser of the Tellstick Duo Plugin :mrgreen:

krambriw
Plugin Developer
Posts: 2569
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: TellStick Duo

Post by krambriw » Wed Apr 06, 2016 5:01 pm

Might be they are not supported.

Telldus is unfortunately not keeping the development of Live and Telldus Center synchronized in respect to supported devices. The plugin for Eventghost (EG) is depending on drivers & library files installed when you install Telldus Center. Only thing you can do is to verify that you are running the latest version of Telldus Center (I have version 2.1.2 I believe is the latest).

Once you have Telldus Center installed, you can check if the sensors are recognized there by entering the following screen:
Skärmklipp.JPG
If the sensors are shown there, we have a chance to show them in EG as well, might also be I have missed something in the coding of the plugin
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons

Henrik4223
Posts: 47
Joined: Fri Mar 04, 2016 10:18 am

Re: TellStick Duo

Post by Henrik4223 » Wed Apr 06, 2016 7:08 pm

Dear Krambriw

I have version 2.1.2.

And the sensors are showing up in Telldus center - see the screenshot (sensor number 167/168 and 151).

Does this help? 8)
Attachments
Unavngivet.jpg

krambriw
Plugin Developer
Posts: 2569
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: TellStick Duo

Post by krambriw » Thu Apr 07, 2016 6:51 am

Do you receive any events in EG for the sensors if you enable raw events?
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons

Henrik4223
Posts: 47
Joined: Fri Mar 04, 2016 10:18 am

Re: TellStick Duo

Post by Henrik4223 » Thu Apr 07, 2016 7:13 am

YES - I get data like thins:

TellStickDuo.RawEvent: class:sensor;protocol:fineoffset;id:167;model:temperaturehumidity;humidity:44;temp:20.8;Duo_ID:3

Post Reply