Insteon Lights with "Lights & Appliances"

View: New views
4 Messages — Rating Filter:   Alert me  

Insteon Lights with "Lights & Appliances"

by Jim Duda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've noticed that insteon lights don't "toggle" properly when using the Lights/Appliances
button from the Main MH IA5 page.

I would need to click on one of the lamp icons many times before I could get an
insteon lamp to change state.  This doesn't happen with X10 lights.

I think something like this needs to be done to mh/web/bin/button_action.pl

if (eval qq|$item->isa('Insteon_Device'|) {
     $state = "toggle";
}

eval qq|$item->set("$state", 'web')|;
print "button_action.pl eval error: $@\n" if $@;

With this change, I can at least get a state change when clicking on a lamp.
I do have to click a second time in order to get the state to redisplay.
With X10 lights, the button state is updated immediately.

Better ideas?

I certainly don't know all the possible state scenarios for Insteon_Device.

Jim


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: Insteon Lights with "Lights & Appliances"

by Gregg Liming :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jim Duda wrote:
> I've noticed that insteon lights don't "toggle" properly when using the Lights/Appliances
> button from the Main MH IA5 page.
>
> I would need to click on one of the lamp icons many times before I could get an
> insteon lamp to change state.  This doesn't happen with X10 lights.

That's because the X10 item state blindly assumes that the real device's
state will become the same.  Insteon items are different in that they
don't actually change state until the acknowledge response is received
from the device.  Because this isn't as instantaneous as the web
refresh, the device does not appear to change.

Gregg

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: Insteon Lights with "Lights & Appliances"

by Jim Duda :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/15/2009 06:14 PM, Gregg Liming wrote:
> Jim Duda wrote:

>> I would need to click on one of the lamp icons many times before I could get an
>> insteon lamp to change state.  This doesn't happen with X10 lights.
>
> That's because the X10 item state blindly assumes that the real device's
> state will become the same.  Insteon items are different in that they
> don't actually change state until the acknowledge response is received
> from the device.  Because this isn't as instantaneous as the web
> refresh, the device does not appear to change.
>

Ah, that makes sense.  I guess we'd need some AJAX here ...

Do you agree with the simple change I made to button_actions.pl
in order to get Insteon devices to at least change state?

Jim




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365


Re: Insteon Lights with "Lights & Appliances"

by w20090329.mh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/15/2009 5:14 PM, Gregg Liming wrote:

> Jim Duda wrote:
>    
>> I've noticed that insteon lights don't "toggle" properly when using the Lights/Appliances
>> button from the Main MH IA5 page.
>>
>> I would need to click on one of the lamp icons many times before I could get an
>> insteon lamp to change state.  This doesn't happen with X10 lights.
>>      
> That's because the X10 item state blindly assumes that the real device's
> state will become the same.  Insteon items are different in that they
> don't actually change state until the acknowledge response is received
> from the device.  Because this isn't as instantaneous as the web
> refresh, the device does not appear to change.
>
>    

Good explanation.

It's still annoying, though.  :)


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
________________________________________________________
To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365