Lutron LEAP protocol plugin - first test release

Posted on
Mon Jan 02, 2023 5:47 pm
cuhouse offline
Posts: 144
Joined: Feb 21, 2007
Location: Virginia, USA

Re: Lutron LEAP protocol plugin - first test release

Joe,

I upgraded to version 2022.0.4

Low, Medium, High and Off all still work. The "State" column, "Speed Controls", "Device Details" and the "Custom States" in the Indigo UI update appropriately. The Lutron App states follow the Indigo UI.

When the speeds are selected with the Lutron App, all the above follows in the Indigo UI.
Also of note, when Medium High is selected with the Lutron App, the Indigo UI again follows all except the "Speed Controls" since Indigo of course doesn't have a Medium High.

The only thing that doesn't yet work, is the Action Group commanding the Medium High setting. See error at bottom of capture.

Jody

Code: Select all
Jan 2, 2023 at 5:51:45 PM
   Stopping plugin Lutron Leap (pid 55100)
   Lutron Leap Debug               stop_concurrent_thread called
   Lutron Leap Debug               Living Room_Ceiling Fan (2): Stopping Device
   Lutron Leap Debug               Lutron Bridge: Stopping Device
   Stopped plugin Lutron Leap
   Upgrading plugin Lutron Leap to newer version 2022.0.4 (previous version moved to trash)
   Loading plugin "Lutron Leap 2022.0.4" using API v3.1
   Starting plugin "Lutron Leap 2022.0.4" (pid 56982)
   Started plugin "Lutron Leap 2022.0.4"
   Lutron Leap Debug               startup
   Lutron Leap Debug               run_async_thread starting
   Lutron Leap Debug               async_main starting
   Lutron Leap Debug               startup complete
   Lutron Leap Debug               Living Room_Ceiling Fan (2): Starting Device
   Lutron Leap Debug               Lutron Bridge: Starting Device
   Lutron Leap Debug               Lutron Bridge: Creating bridge at Lutron-032e03d0.local.
   Lutron Leap Debug               Lutron Bridge: Connecting Bridge
   Lutron Leap Debug               Lutron Bridge: Bridge Connected
   Lutron Leap Debug               Found device: Smart Bridge 2
   Lutron Leap Debug               Found device: Living Room_Ceiling Fan
   Lutron Leap Debug               Lutron Bridge: Found Area: {'id': '1', 'name': 'root', 'parent_id': None}
   Lutron Leap Debug               Lutron Bridge: Found Area: {'id': '2', 'name': 'Living Room', 'parent_id': '1'}

Jan 2, 2023 at 5:52:09 PM
   Received INSTEON                "Kitchen Motion Sensor" on (button 1)
   Lutron Leap Debug               Living Room_Ceiling Fan (2): actionControlSpeedControl: action = actionValue : 1
configured : True
delayAmount : 900
description : set device speed to level2
deviceId : 1145215022
replaceExisting : True
speedControlAction : SetSpeedIndex
textToSpeak :
   Lutron Leap Debug               Living Room_Ceiling Fan (2): SetSpeedIndex to 1
   Lutron Leap Debug               Living Room_Ceiling Fan (2): set_fan peed_index = 1
   Lutron Leap Debug               device_event: bridge_id = 1713852130, device_id = 2
   Lutron Leap Debug               device_event: data = {'device_id': '2', 'current_state': -1, 'fan_speed': 'Low', 'tilt': None, 'zone': '1', 'name': 'Living Room_Ceiling Fan', 'button_groups': None, 'occupancy_sensors': None, 'type': 'CasetaFanSpeedController', 'model': 'PD-FSQN-XX', 'serial': 38000162, 'device_name': 'Ceiling Fan', 'area': '2'}
   Lutron Leap Debug               Living Room_Ceiling Fan (2): Fan speed is now Low
   Trigger                         Store Outside Temperature

Jan 2, 2023 at 5:53:24 PM
   Trigger                         Store Outside Temperature
   Lutron Leap Debug               Living Room_Ceiling Fan (2): actionControlSpeedControl: action = actionValue : 2
configured : True
delayAmount : 900
description : set device speed to level3
deviceId : 1145215022
replaceExisting : True
speedControlAction : SetSpeedIndex
textToSpeak :
   Lutron Leap Debug               Living Room_Ceiling Fan (2): SetSpeedIndex to 2
   Lutron Leap Debug               Living Room_Ceiling Fan (2): set_fan peed_index = 2
   Lutron Leap Debug               device_event: bridge_id = 1713852130, device_id = 2
   Lutron Leap Debug               device_event: data = {'device_id': '2', 'current_state': -1, 'fan_speed': 'Medium', 'tilt': None, 'zone': '1', 'name': 'Living Room_Ceiling Fan', 'button_groups': None, 'occupancy_sensors': None, 'type': 'CasetaFanSpeedController', 'model': 'PD-FSQN-XX', 'serial': 38000162, 'device_name': 'Ceiling Fan', 'area': '2'}
   Lutron Leap Debug               Living Room_Ceiling Fan (2): Fan speed is now Medium

Jan 2, 2023 at 5:53:59 PM
   Lutron Leap Debug               Living Room_Ceiling Fan (2): actionControlSpeedControl: action = actionValue : 3
configured : True
delayAmount : 900
description : set device speed to level4
deviceId : 1145215022
replaceExisting : True
speedControlAction : SetSpeedIndex
textToSpeak :
   Lutron Leap Debug               Living Room_Ceiling Fan (2): SetSpeedIndex to 3
   Lutron Leap Debug               Living Room_Ceiling Fan (2): set_fan peed_index = 3
   Lutron Leap Debug               device_event: bridge_id = 1713852130, device_id = 2
   Lutron Leap Debug               device_event: data = {'device_id': '2', 'current_state': -1, 'fan_speed': 'High', 'tilt': None, 'zone': '1', 'name': 'Living Room_Ceiling Fan', 'button_groups': None, 'occupancy_sensors': None, 'type': 'CasetaFanSpeedController', 'model': 'PD-FSQN-XX', 'serial': 38000162, 'device_name': 'Ceiling Fan', 'area': '2'}
   Lutron Leap Debug               Living Room_Ceiling Fan (2): Fan speed is now High

Jan 2, 2023 at 5:54:20 PM
   Lutron Leap Debug               Living Room_Ceiling Fan (2): actionControlSpeedControl: action = actionValue : 0
configured : True
delayAmount : 900
description : set device speed to off
deviceId : 1145215022
replaceExisting : True
speedControlAction : SetSpeedIndex
textToSpeak :
   Lutron Leap Debug               Living Room_Ceiling Fan (2): SetSpeedIndex to 0
   Lutron Leap Debug               Living Room_Ceiling Fan (2): set_fan peed_index = 0
   Lutron Leap Debug               device_event: bridge_id = 1713852130, device_id = 2
   Lutron Leap Debug               device_event: data = {'device_id': '2', 'current_state': -1, 'fan_speed': 'Off', 'tilt': None, 'zone': '1', 'name': 'Living Room_Ceiling Fan', 'button_groups': None, 'occupancy_sensors': None, 'type': 'CasetaFanSpeedController', 'model': 'PD-FSQN-XX', 'serial': 38000162, 'device_name': 'Ceiling Fan', 'area': '2'}
   Lutron Leap Debug               Living Room_Ceiling Fan (2): Fan speed is now Off


Indigo Action Group for Medium High Setting

Code: Select all
Jan 2, 2023 at 5:54:43 PM
   Action Group                    Lutron Medium High Fan Setting
   Lutron Leap Error               Error in plugin execution ExecuteAction:

  File "plugin.py", line 632, in set_fan_speed_action
type: key fan_speed not found in dict

Indigo 2022.1.2, Big Sur v11.7.1, Dedicated late 2014 Mac Mini, PowerLinc 2413U.

Posted on
Mon Jan 02, 2023 5:50 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release

Try recreating the action group that sets the MediumHigh speed.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jan 02, 2023 6:04 pm
cuhouse offline
Posts: 144
Joined: Feb 21, 2007
Location: Virginia, USA

Re: Lutron LEAP protocol plugin - first test release

Deleted and recreated the action group.

Same error...

Code: Select all
Jan 2, 2023 at 6:59:40 PM
   Action Group                    Lutron Leap Medium High Fan
   Lutron Leap Error               Error in plugin execution ExecuteAction:

  File "plugin.py", line 633, in set_fan_speed_action
type: name 'bridge_dev' is not defined

Indigo 2022.1.2, Big Sur v11.7.1, Dedicated late 2014 Mac Mini, PowerLinc 2413U.

Posted on
Mon Jan 02, 2023 6:46 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release

cuhouse wrote:
Deleted and recreated the action group.

Same error...

Code: Select all
Jan 2, 2023 at 6:59:40 PM
   Action Group                    Lutron Leap Medium High Fan
   Lutron Leap Error               Error in plugin execution ExecuteAction:

  File "plugin.py", line 633, in set_fan_speed_action
type: name 'bridge_dev' is not defined


Actually, that's a different error. But a bug anyway. Let me fix that one...

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jan 02, 2023 6:49 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Jan 02, 2023 7:36 pm
cuhouse offline
Posts: 144
Joined: Feb 21, 2007
Location: Virginia, USA

Re: Lutron LEAP protocol plugin - first test release

Joe,

Success with the Lutron Fan!
2022.0.5 resolved the action group error for Medium High. All states are reflected in Indigo UI and the Lutron App.

Thanks again. If you require any further testing, let me know.

Jody

Indigo 2022.1.2, Big Sur v11.7.1, Dedicated late 2014 Mac Mini, PowerLinc 2413U.

Posted on
Mon Jan 02, 2023 8:42 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release

That release has on/off/toggle actions, which are not in the Indigo UI but can be done from action groups. If you get a chance to test them it would be appreciated. Especially to see if the last fan speed was retained in an off then on sequence.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jan 03, 2023 5:18 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release

New release: https://github.com/FlyingDiver/Indigo-L ... g/2022.0.6

Linked Devices implemented
Occupancy Group devices added

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jan 03, 2023 5:53 pm
cuhouse offline
Posts: 144
Joined: Feb 21, 2007
Location: Virginia, USA

Re: Lutron LEAP protocol plugin - first test release

FlyingDiver wrote:
That release has on/off/toggle actions, which are not in the Indigo UI but can be done from action groups. If you get a chance to test them it would be appreciated. Especially to see if the last fan speed was retained in an off then on sequence.


Joe,

Sorry for the delay in responding.

I tested the on/off/toggle actions as you requested and all work as they should. I was able verify the rest of the "Device Actions/Fan Speed Control" selections in the Indigo UI and they all worked also.

Screen Shot 2023-01-03 at 6.42.19 PM.png
Screen Shot 2023-01-03 at 6.42.19 PM.png (31.66 KiB) Viewed 2347 times


As I am sure you already are aware, the only time when the last fan speed is not retained is if you turn the fan off with the Lutron App.

Interesting to me is if I selected the Medium High setting with the Lutron App, turned the fan off in Indigo and back on with Indigo, it retained the Medium High setting.

Let me know if there is anything more you need on the Lutron Fan device.

Jody

Indigo 2022.1.2, Big Sur v11.7.1, Dedicated late 2014 Mac Mini, PowerLinc 2413U.

Posted on
Tue Jan 03, 2023 5:55 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release

Yeah, the Off in the Lutron app is a real off, ie speed 0. Like the speed off in the Indigo UI.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Jan 03, 2023 6:55 pm
FlyingDiver offline
User avatar
Posts: 7216
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Lutron LEAP protocol plugin - first test release

And thanks for all the testing. Much appreciated.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Wed Jan 04, 2023 4:05 pm
cuhouse offline
Posts: 144
Joined: Feb 21, 2007
Location: Virginia, USA

Re: Lutron LEAP protocol plugin - first test release

Glad it helped with at least one device. I hope to add Serena shades sometime in the future.

Thanks for all the work on your plugins Joe.

Indigo 2022.1.2, Big Sur v11.7.1, Dedicated late 2014 Mac Mini, PowerLinc 2413U.

Who is online

Users browsing this forum: No registered users and 2 guests