SageTV Community

SageTV Community (http://forums.sagetv.com/forums/index.php)
-   SageTV v7 Customizations (http://forums.sagetv.com/forums/forumdisplay.php?f=47)
-   -   Plugin: InControl For SageTV/HomeSeer (http://forums.sagetv.com/forums/showthread.php?t=50370)

lamanmi 10-30-2010 09:52 AM

nisse,

Is the delay you are seeingin HomeSeer or Sage?

Thanks!

Quote:

Originally Posted by nissse (Post 459978)
Hello

I have tested this great software and i have some questions:

I have added one sagetv client and when it's on everything works great but when the client is off i get about 20 sec delay. Is this normal for everyone ?

I have tryed "Advanced Options: Delete All" and added the client again but same result.

Here is the log showing the delay:

Code:

2010-10-29 18:49:04  Info  Device: TellStick Sovrum taklampa (H1) (A16) ON
2010-10-29 18:49:23  InControl_Sage  TRACE: Exiting HSEvent
2010-10-29 18:49:23  TellStick  ----------First In Queue---------1
2010-10-29 18:49:24  TellStick  Sovrum taklampa (H1) Slogs på...
2010-10-29 18:49:24  InControl_Sage  TRACE: Entering HSEvent
2010-10-29 18:49:24  InControl_Sage  TRACE: Entering modMain_GetStatus
2010-10-29 18:49:24  InControl_Sage  TRACE: Entering modMain_SendMessage
2010-10-29 18:49:24  InControl_Sage  Ping Started 192.168.0.2
2010-10-29 18:49:24  InControl_Sage  Ping Completed 192.168.0.2
2010-10-29 18:49:24  InControl_Sage  Sending Init
2010-10-29 18:49:24  InControl_Sage  TRACE: Entering modMain_ProcessMessage_InitDevice
2010-10-29 18:49:24  InControl_Sage  TRACE: Entering modMain_SendCommandTCP
2010-10-29 18:49:24  InControl_Sage  modMain_SendCommandTCP: Message=INIT;8781;2 Sovrum Taklampa;2 Sovrum;Taklampa;On;2010-10-29 18:49;-1;light;N;Y;light_on.gif;100;2;;END



nissse 10-30-2010 10:45 AM

Hello again.

I get the delay in both sagetv and homeseer if i have one sagetvclient off

for example:

if i add 2 sagetvclients and both are on everyting goes fast but if i turn off one sagetvclient there is a delay on both homeseer and the other sagetvclient.

another exemple:

if i add 1 sagetvclient and its on everyting works good in both sagetvclient and homeseer webinterface but if i turn off the sagetvclient it's a delay for about 20 sec in homeseer web interface (cant try sagetvclient cus it's turnd off)

Thank you for taking the time to look at this

lamanmi 10-31-2010 06:11 AM

nissse,

Can you try a few things for me:

- will the delay occur if either sage client is off or is it always the same one?
- do you run firewalls? if so, can you temporarily try disabling them on the homeseer and sage pcs.

I am working on a related issue with having the firewalls enabled with pvrnorth, however, this will help us narrow it down.



Quote:

Originally Posted by nissse (Post 460112)
Hello again.

I get the delay in both sagetv and homeseer if i have one sagetvclient off

for example:

if i add 2 sagetvclients and both are on everyting goes fast but if i turn off one sagetvclient there is a delay on both homeseer and the other sagetvclient.

another exemple:

if i add 1 sagetvclient and its on everyting works good in both sagetvclient and homeseer webinterface but if i turn off the sagetvclient it's a delay for about 20 sec in homeseer web interface (cant try sagetvclient cus it's turnd off)

Thank you for taking the time to look at this


nissse 10-31-2010 07:29 AM

Quote:

Can you try a few things for me:

- will the delay occur if either sage client is off or is it always the same one?
- do you run firewalls? if so, can you temporarily try disabling them on the homeseer and sage pcs.

I am working on a related issue with having the firewalls enabled with pvrnorth, however, this will help us narrow it down.
- it occurs if either sage client is off
- firewall is off but same result.

More info:

Server:
Windows home server (2003 server)
Homeseer pro 2.3.0.19 (tellstick to controll nexa lights)
latest sagetv 7 beta

Client1:
Vista

Client2:
Vista

I'm usign the "Image To Display" to display a image from my ipcammera and i have the same problem there with a delay for 20 sec but i found a workaround to get pass that. Instead off having "All devices" in "Sage Device:" i put only one client and make two events and have homeseer send the picture to the clients seperatly. This works so i can show pictures in sagetv fast. But i have not foud a workaround for changeing lights fast when one client is off because i cant assign buttons for only one client.

It is hard to explain what i meen but it seems to me that if one client is off homeseer tryes to send (update light status) to if for about 20 sec and then gives up and move on the the next.

I hope we can get this sorted out because i rely like your plugin.

Best regard
Nissse

pvrnorth 11-01-2010 01:05 PM

Yes, all of my machine's IP addresses are assigned by DHCP.

I also experience a delay with one of my clients off. If I turn a light off on my server (with a client off), the light goes off, but Incontrol doesn't update for a while (might be 20s?)

Thanks,
Jeff

Quote:

Originally Posted by lamanmi (Post 460103)
Jeff,

Does your homeseer and win 7/xp clients have static IP addresses or dynamic (DHCP addresses)?


nissse 11-02-2010 12:58 AM

Quote:

I also experience a delay with one of my clients off. If I turn a light off on my server (with a client off), the light goes off, but Incontrol doesn't update for a while (might be 20s?)

Thanks,
Jeff
Nice to know that the problem is not only for me.

lamanmi 11-02-2010 03:24 PM

Updated version
 
All,

See the first post for more details, but made some changes that should start to clear up issues with firewalls, I'm sure there will be more refinements required, but lets start with this version. You will need to update both HomeSeer and Sage.

Also, this should at least be the first step in fixing the delays when a client is shut down and/or a client is used in conjunction with a firewall.

The only other fix was a small fix to to continue to refine how Sage displays images sent via the message command. Still needs some refinements, but getting closer.

Let me know how it goes.

pvrnorth 11-03-2010 07:24 AM

Quote:

Originally Posted by lamanmi (Post 460768)
All,

See the first post for more details, but made some changes that should start to clear up issues with firewalls, I'm sure there will be more refinements required, but lets start with this version. You will need to update both HomeSeer and Sage.

Also, this should at least be the first step in fixing the delays when a client is shut down and/or a client is used in conjunction with a firewall.

The only other fix was a small fix to to continue to refine how Sage displays images sent via the message command. Still needs some refinements, but getting closer.

Let me know how it goes.

Michael,

So far so good! :thumb: All of my clients can connect now. Also the delay updating sage Incontrol seems to be gone. Thanks!

So now for a feature request :D Is there any way for an event to show the status (in SageTV) of a device, or even better the 'or' of a group of devices, instead of just showing the script icon? For example on the main floor of my house, I have a group of four switches that all control individual lights in the same area (why the house was wired this way I have no idea...). I have an event to turn all 4 on and an event to turn all four off. It would be nice to either show the status of one light (or the 'or' of all four - ie if any one light is on, the status would show as on).

Thanks again!

Moskus 11-05-2010 08:51 AM

Ok, just installed the new version. But why in the world did all my client configurations disappear?!?


Now I have to set up all HomeSeer devices and struggle with HSTouch. Again! :bang:

lamanmi 11-06-2010 08:41 AM

pvrnorth,

Great to hear....I'll look into the Event Status idea you listed and add that to the enhancment list.

Quote:

Originally Posted by pvrnorth (Post 460910)
Michael,

So far so good! :thumb: All of my clients can connect now. Also the delay updating sage Incontrol seems to be gone. Thanks!

So now for a feature request :D Is there any way for an event to show the status (in SageTV) of a device, or even better the 'or' of a group of devices, instead of just showing the script icon? For example on the main floor of my house, I have a group of four switches that all control individual lights in the same area (why the house was wired this way I have no idea...). I have an event to turn all 4 on and an event to turn all four off. It would be nice to either show the status of one light (or the 'or' of all four - ie if any one light is on, the status would show as on).

Thanks again!


lamanmi 11-06-2010 08:43 AM

Moskus,

I have not seen that behavior. Was it the Sage HomeSeer devices that disappeared or the individual Sage servers/clients/extenders (i.e. 1000_0)?

At the minimum, I will look into adding a "Backup Configuration" option.



Quote:

Originally Posted by Moskus (Post 461437)
Ok, just installed the new version. But why in the world did all my client configurations disappear?!?


Now I have to set up all HomeSeer devices and struggle with HSTouch. Again! :bang:


tp4656 11-06-2010 10:31 AM

HSconnection: Not Set
 
2 Attachment(s)
Hi, I have installed your plug in on a WHS box. Both Sage and Homeseer are on the same server. I keep getting HSconnection: Not Set, but the sever setting are Valid. I've tried it from the Sage GUI on the WHS desktop and from two HD300 extenders. I've tried some of the previously posted tips and have attached my logs.

Tom

tp4656 11-06-2010 02:56 PM

HSconnection: Not Set
 
Hi, I somehow fixed my connection problem. I think it happened when I was adding other plugins to Homeseer. I notice that the device ID had change from 1000 to 1004. The Sage addin is working now. Now I just have to figure out how to set up thermostat control through the UltraM1G plugin.

Thanks,
Tom

Moskus 11-07-2010 10:09 AM

Quote:

Originally Posted by lamanmi (Post 461605)
I have not seen that behavior. Was it the Sage HomeSeer devices that disappeared or the individual Sage servers/clients/extenders (i.e. 1000_0)?

The individual sage clients and extenders (1000_X) disappeared for some reason.

Well, I used scripts in my HStouch project... if it happens again, I just need to name my extenders/placeshifters like I did before. ;)

nissse 11-07-2010 12:54 PM

I'm sorry to say that the 20 sec delay is still there after the update.
Any ides ?

lamanmi 11-07-2010 06:42 PM

Nissue,

Can you enable logging, recreate the problem and send me the logs.

Also, can you confirm if you are using firewalls?


Quote:

Originally Posted by nissse (Post 461824)
I'm sorry to say that the 20 sec delay is still there after the update.
Any ides ?


nissse 11-08-2010 07:20 AM

I can give you the homeseer log now :

Code:

2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ReceiveMsgTCP
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ProcessMessage
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - modMain_ProcessMessage: Message=EXEC;192.168.0.1;SAGETV_PROCESS_LOCAL_UI;SAGE;1008;SAGETV_PROCESS_LOCAL_UI;1502;JAVA;
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_Exec
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - Info - Command sent to  TellStick Vardagsrum taklampa (H2): A5 ON Dimval: 0 Data: 0
2010-11-08 14:08:08  - TellStick - ----------First In Queue---------1
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering HSEvent
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_GetStatus
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_SendMessage
2010-11-08 14:08:10  - InControl_Sage - Ping Started 192.168.0.2
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ReceiveMsgTCP
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ProcessMessage
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - modMain_ProcessMessage: Message=EXEC;192.168.0.1;SAGETV_PROCESS_LOCAL_UI;SAGE;1008;SAGETV_PROCESS_LOCAL_UI;1502;JAVA;
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_Exec
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - Info - Command sent to  TellStick Vardagsrum taklampa (H2): A5 OFF Dimval: 0 Data: 0
2010-11-08 14:08:19  - Info - Command sent to  Eventghost Cam3: V3 On Dimval: 0 Data: 0
2010-11-08 14:08:24  - InControl_Sage - Ping Completed 192.168.0.2
2010-11-08 14:08:24  - InControl_Sage - Ping Started 192.168.0.3
2010-11-08 14:08:39  - InControl_Sage - Ping Completed 192.168.0.3
2010-11-08 14:08:39  - InControl_Sage - Ping Started 192.168.0.1
2010-11-08 14:08:39  - InControl_Sage - Ping Completed 192.168.0.1
2010-11-08 14:08:39  - InControl_Sage - Sending Init
2010-11-08 14:08:39  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_InitDevice
2010-11-08 14:08:39  - InControl_Sage - TRACE: Entering modMain_SendCommandTCP
2010-11-08 14:08:39  - InControl_Sage - modMain_SendCommandTCP: Message=INIT;1502;3 Vardagsrum Taklampa;3 Vardagsrum;Taklampa;On;2010-11-08 14:08;-1;light;N;Y;light_on.gif;100;2;;END
2010-11-08 14:08:39  - InControl_Sage - TRACE: Exiting HSEvent
2010-11-08 14:08:39  - TellStick - ----------First In Queue---------1
2010-11-08 14:08:41  - InControl_Sage - TRACE: Entering HSEvent
2010-11-08 14:08:41  - InControl_Sage - TRACE: Entering modMain_GetStatus
2010-11-08 14:08:41  - InControl_Sage - TRACE: Entering modMain_SendMessage
2010-11-08 14:08:41  - InControl_Sage - Ping Started 192.168.0.2
2010-11-08 14:08:55  - InControl_Sage - Ping Completed 192.168.0.2
2010-11-08 14:08:55  - InControl_Sage - Ping Started 192.168.0.3
2010-11-08 14:09:10  - InControl_Sage - Ping Completed 192.168.0.3
2010-11-08 14:09:10  - InControl_Sage - Ping Started 192.168.0.1
2010-11-08 14:09:10  - InControl_Sage - Ping Completed 192.168.0.1
2010-11-08 14:09:10  - InControl_Sage - Sending Init
2010-11-08 14:09:10  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_InitDevice
2010-11-08 14:09:10  - InControl_Sage - TRACE: Entering modMain_SendCommandTCP
2010-11-08 14:09:10  - InControl_Sage - modMain_SendCommandTCP: Message=INIT;1502;3 Vardagsrum Taklampa;3 Vardagsrum;Taklampa;Off;2010-11-08 14:08;-1;light;N;Y;light_off.gif;0;3;;END
2010-11-08 14:09:10  - InControl_Sage - TRACE: Exiting HSEvent
2010-11-08 14:09:10  - InControl_Sage - TRACE: Entering HSEvent
2010-11-08 14:09:10  - InControl_Sage - TRACE: Exiting HSEvent

This is when I click On then Off on a device in sagetv server with 2 clients turned off. As you can see in the log
I turn on the light : 2010-11-08 14:08:39 - TellStick - ----------First In Queue---------1
I then turn off the same device right away but get delayed until : 2010-11-08 14:08:39 - TellStick - ----------First In Queue---------1
= 31 sec delay =(

When i check http://<HomeSeer Server>/InControl_Sage the sagetvclients are listed as logged in. But the are in hibernate mode (NOT ON)

Can you get anything from this or do you need the sagetv logs ?

lamanmi 11-08-2010 05:49 PM

Nisse,

Did you update HomeSeer as well to version 1.3.6? It appears that the HomeSeer plugin is not 1.3.6. If it is, can you restart HomeSeer and then send me the part of the log that has the startup from InControl?

Thanks!

Quote:

Originally Posted by nissse (Post 462000)
I can give you the homeseer log now :

Code:

2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ReceiveMsgTCP
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ProcessMessage
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - modMain_ProcessMessage: Message=EXEC;192.168.0.1;SAGETV_PROCESS_LOCAL_UI;SAGE;1008;SAGETV_PROCESS_LOCAL_UI;1502;JAVA;
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_Exec
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:08  - Info - Command sent to  TellStick Vardagsrum taklampa (H2): A5 ON Dimval: 0 Data: 0
2010-11-08 14:08:08  - TellStick - ----------First In Queue---------1
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering HSEvent
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_GetStatus
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_SendMessage
2010-11-08 14:08:10  - InControl_Sage - Ping Started 192.168.0.2
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ReceiveMsgTCP
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ProcessMessage
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - modMain_ProcessMessage: Message=EXEC;192.168.0.1;SAGETV_PROCESS_LOCAL_UI;SAGE;1008;SAGETV_PROCESS_LOCAL_UI;1502;JAVA;
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_Exec
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - InControl_Sage - TRACE: Entering modMain_ParseCommand
2010-11-08 14:08:10  - Info - Command sent to  TellStick Vardagsrum taklampa (H2): A5 OFF Dimval: 0 Data: 0
2010-11-08 14:08:19  - Info - Command sent to  Eventghost Cam3: V3 On Dimval: 0 Data: 0
2010-11-08 14:08:24  - InControl_Sage - Ping Completed 192.168.0.2
2010-11-08 14:08:24  - InControl_Sage - Ping Started 192.168.0.3
2010-11-08 14:08:39  - InControl_Sage - Ping Completed 192.168.0.3
2010-11-08 14:08:39  - InControl_Sage - Ping Started 192.168.0.1
2010-11-08 14:08:39  - InControl_Sage - Ping Completed 192.168.0.1
2010-11-08 14:08:39  - InControl_Sage - Sending Init
2010-11-08 14:08:39  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_InitDevice
2010-11-08 14:08:39  - InControl_Sage - TRACE: Entering modMain_SendCommandTCP
2010-11-08 14:08:39  - InControl_Sage - modMain_SendCommandTCP: Message=INIT;1502;3 Vardagsrum Taklampa;3 Vardagsrum;Taklampa;On;2010-11-08 14:08;-1;light;N;Y;light_on.gif;100;2;;END
2010-11-08 14:08:39  - InControl_Sage - TRACE: Exiting HSEvent
2010-11-08 14:08:39  - TellStick - ----------First In Queue---------1
2010-11-08 14:08:41  - InControl_Sage - TRACE: Entering HSEvent
2010-11-08 14:08:41  - InControl_Sage - TRACE: Entering modMain_GetStatus
2010-11-08 14:08:41  - InControl_Sage - TRACE: Entering modMain_SendMessage
2010-11-08 14:08:41  - InControl_Sage - Ping Started 192.168.0.2
2010-11-08 14:08:55  - InControl_Sage - Ping Completed 192.168.0.2
2010-11-08 14:08:55  - InControl_Sage - Ping Started 192.168.0.3
2010-11-08 14:09:10  - InControl_Sage - Ping Completed 192.168.0.3
2010-11-08 14:09:10  - InControl_Sage - Ping Started 192.168.0.1
2010-11-08 14:09:10  - InControl_Sage - Ping Completed 192.168.0.1
2010-11-08 14:09:10  - InControl_Sage - Sending Init
2010-11-08 14:09:10  - InControl_Sage - TRACE: Entering modMain_ProcessMessage_InitDevice
2010-11-08 14:09:10  - InControl_Sage - TRACE: Entering modMain_SendCommandTCP
2010-11-08 14:09:10  - InControl_Sage - modMain_SendCommandTCP: Message=INIT;1502;3 Vardagsrum Taklampa;3 Vardagsrum;Taklampa;Off;2010-11-08 14:08;-1;light;N;Y;light_off.gif;0;3;;END
2010-11-08 14:09:10  - InControl_Sage - TRACE: Exiting HSEvent
2010-11-08 14:09:10  - InControl_Sage - TRACE: Entering HSEvent
2010-11-08 14:09:10  - InControl_Sage - TRACE: Exiting HSEvent

This is when I click On then Off on a device in sagetv server with 2 clients turned off. As you can see in the log
I turn on the light : 2010-11-08 14:08:39 - TellStick - ----------First In Queue---------1
I then turn off the same device right away but get delayed until : 2010-11-08 14:08:39 - TellStick - ----------First In Queue---------1
= 31 sec delay =(

When i check http://<HomeSeer Server>/InControl_Sage the sagetvclients are listed as logged in. But the are in hibernate mode (NOT ON)

Can you get anything from this or do you need the sagetv logs ?


nissse 11-09-2010 02:24 AM

Hello again.

You are right it was not updated correctly. I hadto manually install it by going to the updates2 folder and click on it. It sure look better now but all devices and settings is gone so it will take some time to config everything again and then i can test again.

Homeseer now starts up mutch faster then before.

Thank you very mutch.

nissse 11-10-2010 06:35 AM

I have isolated the problem to one sagetvclient.

The problem with this client is that it's not loging off when the coputer is hibernating.

Code:

Device ID        Description                Server/Client IP        Port                Type        Logged In        Action
1000_5                Click To Set                192.168.0.3                10993                Local        Yes                Send Msg

If I close down sagetvclient it loges off as normal.
Any ide what can cause this ? I have uninstalled sage plugin and removes it from homeseer and added a new but same problem. Firewall are off on all computers.

cpass 11-10-2010 12:40 PM

Change Temperature
 
Hi brilliant product, would it be possible to change a virtual temperature from the Sage Client , an up and down instead of on and off. Depending on how Homeseer works I can imagine this could be difficult

mbowling 11-14-2010 04:16 PM

Quote:

Originally Posted by Moskus (Post 461437)
Ok, just installed the new version. But why in the world did all my client configurations disappear?!?

It appears that I have the same problem as Moskus. Today, I upgraded from 1.3.5 to 1.3.6 and all the HomeSeer devices have disappeared from the SageTV interface. I looked in the HomeSeer "InControl_Sage Plug In" page and there is only one client listed, "1000_0". In the past there was more than one listed on this page even though I only have one HD200. Unfortunately, I don't remember what was originally there. All of the HomeSeer devices that were initially checked as "Show Device in Sage" are no longer checked.

I restored an earlier HomeSeer database hoping to recover the original configuration, but it didn't work. Where are the InControl HomeSeer settings stored? I have a backup of everything. I just need to understand what to restore. I had a lot of custom names and locations configured that I don't want to recreate from scratch.

lamanmi 11-14-2010 05:28 PM

nissse,

Let me research that one. I will have to see if Sage or Java can trap the "hibernation" event so I can properly send a Logoff. I will let you know.

Thanks!


Quote:

Originally Posted by nissse (Post 462449)
I have isolated the problem to one sagetvclient.

The problem with this client is that it's not loging off when the coputer is hibernating.

Code:

Device ID        Description                Server/Client IP        Port                Type        Logged In        Action
1000_5                Click To Set                192.168.0.3                10993                Local        Yes                Send Msg

If I close down sagetvclient it loges off as normal.
Any ide what can cause this ? I have uninstalled sage plugin and removes it from homeseer and added a new but same problem. Firewall are off on all computers.


lamanmi 11-14-2010 05:33 PM

cpass,

I am going to work exposing the HomeSeer device action logic next, so that any special commands available through HomeSeer can be seen as buttons in Sage. I'm assuming this is the type of of device you are speaking of.

Alternativly, I am also considering at least being able to have a HomeSeer event triggered when a Sage button is pressed.

One item that may help me confirm I can add this capabilty would be if you can send me the device information, by doing the following:

1) go to the virtual device
2) at the bottom click "InControl Device Information"
3) scroll to the bottom and enter a valid path on your homeseer server
4) click export
5) then attach the file to the forum

This will have the exact setup of your device so I can import it into my development system and work with it.

Thanks!

Quote:

Originally Posted by cpass (Post 462512)
Hi brilliant product, would it be possible to change a virtual temperature from the Sage Client , an up and down instead of on and off. Depending on how Homeseer works I can imagine this could be difficult


lamanmi 11-14-2010 06:10 PM

mbowling,

I found the issue with 1.3.6, the "INI" name setting was reset back to null (empty), which caused it to look for and save all of the ini settings in the HomeSeer settings.ini file. I will correct this with the next version.

However, I did some research and believe I found a way to correct the situation if you still have the HomeSeer device with the buttons, then you can follow the steps below:

1) Open up the hspi_Incontrol.ini and search for "buttonlabel" you should find the something like:

0_HSDevice=YES
0_Ref=7532
0_ButtonCount=2
0_1_ButtonLabel=Home
0_1_ButtonCommand=Home
0_2_ButtonLabel=Online
0_2_ButtonCommand=Online
...

2) Open up settings.ini find the similar the similar ID # under the [Contexts] section (i.e. in this case it is 0) then simply paste those lines after the last 0_ line then go back to the InControl plugin in homeseer and click on the device id (i.e. 1000_0). You should now see the buttons and they should work.

If you deleted the HomeSeer Device, let me know and I will see if I can find a similar work around.

mbowling 11-14-2010 11:03 PM

Quote:

Originally Posted by lamanmi (Post 463475)
1) Open up the hspi_Incontrol.ini and search for "buttonlabel"

Thanks for the info Michael. I didn't have the "buttonlabel" string in the hspi_Incontrol.ini, and since you said that this issue will be fixed in the next version, I decided to restore an image of the C partition which takes me back to 5:00 AM this morning when 1.3.5 was installed and everything was working normally. I'll upgrade when the next version is released.

StorageCraft's ShadowProtect imaging software has saved me a lot of time and effort when these types of problems occur. Rather than spending hours trying to fix a problem, I spend 10 minutes restoring an image backup, and then move on to more enjoyable things. :)

Moskus 11-15-2010 09:40 AM

This is just me reporting that running HomeSeer in an virtual environment doesn't hurt the connection to SageTV via InControl. That's great! :)

Moskus 12-16-2010 02:44 PM

This might be a SageTV limitation, but:
Is it possible to make a HomeSeer function that returns the complete path to the current played file?

lamanmi 12-18-2010 06:36 AM

Moskus,

This is possible, I am working on a new version now and will try to get this capability added.

Quote:

Originally Posted by Moskus (Post 470150)
This might be a SageTV limitation, but:
Is it possible to make a HomeSeer function that returns the complete path to the current played file?


Moskus 12-18-2010 07:32 AM

Fantastic! :)

Moskus 01-17-2011 06:53 AM

How's the new version comming along? :)

lamanmi 01-24-2011 01:46 PM

Just posted it today.....your feature request has been added. Let me know if that is what you were looking for.

Quote:

Originally Posted by Moskus (Post 475648)
How's the new version comming along? :)


Moskus 01-25-2011 04:32 AM

Thanks! Will test this tonight. :)

Moskus 01-25-2011 10:49 AM

The plugin doesn't really initialize. I get this error:
Code:

25.01.2011 17:48:15        Error        Initializing interface: InControl_Sage->Conversion from string "01.25.2011 03:52:44" to type 'Date' is not valid.
...which is not strange as here in Europe we put the day first, so the date should read "25.01.2011 03:52:44" to convert it to 'Date'.

lamanmi 01-25-2011 06:40 PM

Yes, very strange, it must be the different date format. Did you happen to notice if there were any other log messages before or after referencing InControl? Just need to track down where that is happening in the code.

Quote:

Originally Posted by Moskus (Post 477278)
The plugin doesn't really initialize. I get this error:
Code:

25.01.2011 17:48:15        Error        Initializing interface: InControl_Sage->Conversion from string "01.25.2011 03:52:44" to type 'Date' is not valid.
...which is not strange as here in Europe we put the day first, so the date should read "25.01.2011 03:52:44" to convert it to 'Date'.


lamanmi 01-25-2011 07:23 PM

Yes, it is a date format issue. I believe I have corrected the bug. Can you try 1.4.1 now on the HomeSeer Updater. Thanks!!!

Quote:

Originally Posted by Moskus (Post 477278)
The plugin doesn't really initialize. I get this error:
Code:

25.01.2011 17:48:15        Error        Initializing interface: InControl_Sage->Conversion from string "01.25.2011 03:52:44" to type 'Date' is not valid.
...which is not strange as here in Europe we put the day first, so the date should read "25.01.2011 03:52:44" to convert it to 'Date'.


Moskus 01-26-2011 07:55 AM

The plugin now works! :)

But the function returns an empty string... :(

lamanmi 01-26-2011 04:40 PM

Is the name and path showing on the InControl plugin page (http://<homeseer server>/InControl_Sage)?

Be sure logging is set to at least 1 for Incontrol, then do you see any errors?

Try this script (be sure to replace 1002_2 with your Sage ID listed in the plugin page (http://<homeseer server>/InControl_Sage):

Code:

Sub Main(ByVal Parms As Object)
  dim s as string
  s = hs.plugin("InControl_Sage").GetSagePlayingByID("1002_2")
  hs.writelog("InControl","s=" + s)
End Sub



Quote:

Originally Posted by Moskus (Post 477448)
The plugin now works! :)

But the function returns an empty string... :(


Moskus 01-27-2011 02:29 AM

D'oh! Turns out I had two Placeshifters registered in the plugin as "Jobb" (norwegian for "Work) and the plugin returned the path to the first one, which was empty of course.

It works! :)



Another quick question though:
Is it possible to delete Clients from the list in the plugin?

lamanmi 01-27-2011 06:51 PM

Great, glad to hear it works. On the setup page (http://<homeseer server>/InControl_Sage_config) you can delete a "server/client". However, if for example it is a server and you have multiple extenders logged in it will delete all of them, so use with caution.

Otherwise there is not an option in the web intereface to delete an individual client (I will add that, however). In the mean time you can modify the hspi_InControl.ini in the HomeSeer Config directory to remove it. To do this, I would recommend you do the following:
  • shut down homeseer
  • make a backup of the hspi_InControl.ini file.
  • open the hspi_InControl.ini file in a word processor or text editor that has sort capability
  • find the Contexts section
  • sort the lines IN the Contexts section (be sure to only sort those lines, do not sort the Contexts section header or any other sections)
  • find the one you wish to delete and delete all lines begining with that number
  • if there are numbers higher than that, renumber each group by one lower number

In any case the delete option is on the list now and will be in the next release.

Thanks!

Quote:

Originally Posted by Moskus (Post 477600)
D'oh! Turns out I had two Placeshifters registered in the plugin as "Jobb" (norwegian for "Work) and the plugin returned the path to the first one, which was empty of course.

It works! :)



Another quick question though:
Is it possible to delete Clients from the list in the plugin?



All times are GMT -6. The time now is 10:15 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.