Thanks again for all your help. I did some testing with the new plugin and it seems to be sending commands to HomeAssistant fine but it is NOT making changes in Indigo when it receives input from MQTT. I have included debug mode testing information that I tested for both a switch and a light.
To be more specific...
1. all commands from MQTT have a "b" in from of them.. b'OFF' instead of just OFF
2. ON and OFF commands are NOT working but changing the percent to x% IS working
3. I never see any "Refreshing mappings of Indigo devices to HA devices." in the debug log for the new plug-in. In the old plugin it occurred evert 6o seconds
Four Scenarios from debug log below
Scenario 1. OLD Plug-in Switch device class. Turned a switch on and off from HA. I see Command message OFF received on homeassistant...., then a Sent Insteon Back Landscape Light" off. The Indigo device and the HA device and in sync and communicate with each other
Scenario 2: NEW Plug-in Switch device class. Turned the switch on and off from HA. I see the command message b'ON" received on homeasssistant..... but no Sent Insteon Back Landscape Light on or off. Also not sure why it say b'ON' and b'OFF' instead of just ON or OFF as previously
Scenario 3: OLD plug-in light device class. turned the light from HA to a set percentage and that works without issue. I see the command Brightness command message 53 received...... " Sent INSTEON "Front Porch Light" on to 53 and the on and off commands work as before
Scenario 4: NEW plug-in light device class. When I change the light percentage from HA this seems to work. I do see a b'56' and not a 56. However when I send an on of off command from homeassistant the light does not get a Sent INSTEON "Front Porch Light" ON or OFF command.
I have not done much testing on the variable yet.
Let me know if you need any additional information from MQTT Explorer to help identify the bug
***Lastly, Let me know how I can send you something as a thank you for helping update this plug-in.
Info from Debug.
Scenario 1: Response with previous plug-in
Switch: ( I turned the switch off and on from home assistant)
- Code: Select all
HassBridge Debug Command message OFF recieved on homeassistant/switch/back_landscape_light/set
Sent INSTEON "Back Landscape Light" off
HassBridge Debug Refreshing mappings of Indigo devices to HA devices.
HassBridge Debug Command message ON recieved on homeassistant/switch/back_landscape_light/set
Sent INSTEON "Back Landscape Light" on
HassBridge Debug Refreshing mappings of Indigo devices to HA devices.
Scenario 2 - New Plug-in:
I do not see and Sent Insteon Commands and there is a b’ON’ instead of just ON…same for all commands with new plugin?
Switch: (I turned on and then off from Home Assistant) NO RESPONSE IN INDIGO
- Code: Select all
HassBridge Debug Command message b'ON' recieved on homeassistant/switch/back_landscape_light/set
HassBridge Debug Command message b'OFF' recieved on homeassistant/switch/back_landscape_light/set
Light: (I turned the light on then set to 53%, then turn off from Home Asistant)
- Code: Select all
HassBridge Debug Command message ON recieved on homeassistant/light/front_porch_light/light/switch
Sent INSTEON "Front Porch Light" on to 100
HassBridge Debug Sending brightness state of 100 to homeassistant/light/front_porch_light/brightness/status
HassBridge Debug Brightness Command message 53 recieved on homeassistant/light/front_porch_light/brightness/set
HassBridge Debug Command message ON recieved on homeassistant/light/front_porch_light/light/switch
Sent INSTEON "Front Porch Light" on to 53
HassBridge Debug Sending brightness state of 53 to homeassistant/light/front_porch_light/brightness/status
HassBridge Debug Refreshing mappings of Indigo devices to HA devices.
HassBridge Debug Command message OFF recieved on homeassistant/light/front_porch_light/light/switch
Sent INSTEON "Front Porch Light" off
HassBridge Debug Sending brightness state of 0 to homeassistant/light/front_porch_light/brightness/status
HassBridge Debug Refreshing mappings of Indigo devices to HA devices.
Scenario 4: NEW Plug-in
Light: (I turned the light set to 56%, then 86%, then 100% turn off from Home Assistant) – Light does response in Indigo. Still has b’56’ instead of just 56?. When I set he light to OFF or ON from Home Assistant, I get no response in Indigo
- Code: Select all
HassBridge Debug Brightness Command message b'56' recieved on homeassistant/light/front_porch_light/brightness/set
HassBridge Debug Command message b'ON' recieved on homeassistant/light/front_porch_light/light/switch
Sent INSTEON "Front Porch Light" on to 56
HassBridge Debug Sending brightness state of 56 to homeassistant/light/front_porch_light/brightness/status
Jul 18, 2023 at 10:17:24 AM
HassBridge Debug Brightness Command message b'86' recieved on homeassistant/light/front_porch_light/brightness/set
HassBridge Debug Command message b'ON' recieved on homeassistant/light/front_porch_light/light/switch
Sent INSTEON "Front Porch Light" on to 86
HassBridge Debug Sending brightness state of 86 to homeassistant/light/front_porch_light/brightness/status
Jul 18, 2023 at 10:17:47 AM
HassBridge Debug Brightness Command message b'100' recieved on homeassistant/light/front_porch_light/brightness/set
HassBridge Debug Command message b'ON' recieved on homeassistant/light/front_porch_light/light/switch
Sent INSTEON "Front Porch Light" on to 100
HassBridge Debug Sending brightness state of 100 to homeassistant/light/front_porch_light/brightness/status
Light: Turned on and off from Home Assistant
- Code: Select all
HassBridge Debug Command message b'ON' recieved on homeassistant/light/front_porch_light/light/switch
HassBridge Debug Command message b'OFF' recieved on homeassistant/light/front_porch_light/light/switch
Variables:
Seem to be sending to HA just fine. Will need to test in the other direction.
hassbridge.yaml configuration file contents...
- Code: Select all
devices:
Back Landscape Light: # Indigo device name
config_vars:
device_class: switch # Home Assisntant discovery config entry
Side Landscape Light:
config_vars:
device_class: switch
Front Landscape Light:
config_vars:
device_class: switch
Front Porch Light:
config_vars:
device_class: light
variables:
Caddx_panelStatus:
name: Caddx Panel Status
bridge_type: VariableBinarySensor
on_value: Open
config_vars:
device_class: door
Front_door_locked_minutes:
name: Front Door Locked Minutes
bridge_type: VariableSensor
config_vars:
device_class: sensor