Re: [mh] Insteon Setup - Local properties

Carl McGrath <[email protected]> Tue, 20 Apr 2021 17:22:10 -0400
Newsgroups gmane.comp.misc.misterhouse.user
Message-ID <[email protected]>
Thanks Jeff.
It worked ! Easy way to add presets to switch light levels

On 4/15/21 9:18 AM, Jeff Siddall via misterhouse-users wrote:
> On 4/14/21 11:07 AM, Carl McGrath wrote:
>> I am reading this item in the wiki
>> https://github.com/hollie/misterhouse/wiki/Insteon-Devices---Quirks-and-Hints#setting-local-properties 
>> <https://github.com/hollie/misterhouse/wiki/Insteon-Devices---Quirks-and-Hints#setting-local-properties>
>>
>> I am a bit unclear how to implement a Voice command to handle these 
>> directives.
>> Obviously, the objects that will be used in directives such as
>> $some_light->update_local_properties();  (from the wiki)
>> need to have been defined before values are assigned, such as
>> $some_light->local_onlevel('50%');
>> Does someone have an implementation example they can share?
>> Thanks in advance
>
>
> Hello Carl,
>
> Yes, just create a voice command item such as 
> Insteon_Local_Properties, for example "Set Insteon local properties" 
> and then add this to your user code:
>
> if (said $Insteon_Local_Properties) {
>      $some_light->local_onlevel('50%');
>      $some_light->update_local_properties();
> }
>
> Then, from whatever interface you prefer, run the voice command.
>
>
>
> ________________________________________________________
> To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users
>

________________________________________________________
To unsubscribe from this list, go to: https://lists.sourceforge.net/lists/listinfo/misterhouse-users