You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voice_cmd.pl: $gar_outlights_kpl->set('on2off');
^^^ -> yep it works for a KPL's main light, at least on most days :)
voice_cmd.pl: $garage_incandescent->set('on2off');
^^^ -> doesn't work for appliancelink
Kevin's reply:
Hmm. Well if it works in some places, we can probably make it work everywhere. Like I said, I haven't even found the code that enables this to work. Let me keep looking.
The text was updated successfully, but these errors were encountered:
I have no idea where in MH the support for this is. It is somewhere in Generic_Item or possibly in the mh script itself. I suspect if I could find where this is supported, I could figure out why it works on some device types but not others.
I spent a while reading the code and here's what I found:
Generic_Item.pm:
sub state_overload {
my ($self, $flag) = @_;
if (lc $flag eq 'off') {
$self->{states_nomultistate} = 1;
$self->{states_nosubstate} = 1;
}
I didn't quite see/understand why some Insteon devices need this, and some don't, but I found that setting this makes on3off work:
$fmr_blind->state_overload(ON)
Does that help?
Either way, I'm doing better now that I have workaround for the issue :)
Kevin's reply:
Hmm. Well if it works in some places, we can probably make it work everywhere. Like I said, I haven't even found the code that enables this to work. Let me keep looking.
The text was updated successfully, but these errors were encountered: