Page 1 of 1

Different "On State" than actual_state

PostPosted: Thu Jan 18, 2024 1:07 pm
by eme jota ce
When toggling HAA lights (zigbee via HA) either via Indigo or via Home Assistant, the "On State" in the Device Details window does not update but the "actual_state" in the Device Details does update. Also, the State column in Indigo does not update.

Any recommendations to have the Indigo States (State column and "On State") track the "actual_state"?

EDIT - Here's a screenshot:

Re: Different "On State" than actual_state

PostPosted: Thu Jan 18, 2024 5:00 pm
by FlyingDiver
Turn on debug logging and post the section where the update from HA is received and the custom states update (and the Indigo state does not).

Re: Different "On State" than actual_state

PostPosted: Thu Jan 18, 2024 7:13 pm
by FlyingDiver
Also, right click on that device in the Indigo client and write the device data to the log. Then post that here as well.

Re: Different "On State" than actual_state

PostPosted: Fri Jan 19, 2024 9:37 am
by eme jota ce
FlyingDiver wrote:
Turn on debug logging and post the section where the update from HA is received and the custom states update (and the Indigo state does not).


Code: Select all
Jan 19, 2024 at 10:37:29 AM
   Home Assistant Agent Debug      call_service event: light turn_on light.signify_netherlands_b_v_lct001_light_2
   Home Assistant Agent Debug      call_service event: light turn_on light.signify_netherlands_b_v_lct001_light_2
   Home Assistant Agent Debug      Updating device Garage West with {'entity_id': 'light.signify_netherlands_b_v_lct001_light_2', 'state': 'on', 'attributes': {'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': 'color_temp', 'brightness': 128, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': [30.601, 94.547], 'rgb_color': [255, 136, 13], 'xy_color': [0.599, 0.382], 'effect': None, 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Garage Lantern West Light', 'supported_features': 44}, 'last_changed': '2024-01-19T15:37:29.556027+00:00', 'last_updated': '2024-01-19T15:37:29.556027+00:00', 'context': {'id': '01HMH5XE44RBC5JZVKDKR518Z0', 'parent_id': None, 'user_id': 'd70ea7ecd07e48b4a2cf3def48dd56d3'}}
   Home Assistant Agent Debug      Updating device Garage West with {'entity_id': 'light.signify_netherlands_b_v_lct001_light_2', 'state': 'on', 'attributes': {'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': 'color_temp', 'brightness': 128, 'color_temp_kelvin': 2000, 'color_temp': 500, 'hs_color': [30.601, 94.547], 'rgb_color': [255, 136, 13], 'xy_color': [0.599, 0.382], 'effect': None, 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Garage Lantern West Light', 'supported_features': 44}, 'last_changed': '2024-01-19T15:37:29.556027+00:00', 'last_updated': '2024-01-19T15:37:29.556027+00:00', 'context': {'id': '01HMH5XE44RBC5JZVKDKR518Z0', 'parent_id': None, 'user_id': 'd70ea7ecd07e48b4a2cf3def48dd56d3'}}
   Trigger                         garge west On sstate BETA

Re: Different "On State" than actual_state

PostPosted: Fri Jan 19, 2024 9:38 am
by FlyingDiver
I was able to replicate the issue on my system. Working on a fix now.

Re: Different "On State" than actual_state

PostPosted: Fri Jan 19, 2024 9:45 am
by eme jota ce
FlyingDiver wrote:
Also, right click on that device in the Indigo client and write the device data to the log. Then post that here as well.


Code: Select all
Jan 19, 2024 at 10:39:00 AM
   Script                          address : light.signify_netherlands_b_v_lct001_light_2
batteryLevel : None
blueLevel : None
brightness : 0
buttonConfiguredCount : 0
buttonGroupCount : 0
configured : True
defaultBrightness : 100
description :
deviceTypeId : HAdimmerType
displayStateId : brightnessLevel
displayStateImageSel : NoImage
displayStateValRaw : 0
displayStateValUi : 0
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 649183066
globalProps : MetaProps : (dict)
     no.homeassistant.plugin : (dict)
          SupportsStatusRequest : false (bool)
          address : light.signify_netherlands_b_v_lct001_light_2 (string)
          states_list : (list)
               Item : min_color_temp_kelvin (string)
               Item : max_color_temp_kelvin (string)
               Item : min_mireds (string)
               Item : max_mireds (string)
               Item : effect_list (string)
               Item : supported_color_modes (string)
               Item : color_mode (string)
               Item : brightness (string)
               Item : color_temp_kelvin (string)
               Item : color_temp (string)
               Item : hs_color (string)
               Item : rgb_color (string)
               Item : xy_color (string)
               Item : effect (string)
               Item : off_with_transition (string)
               Item : off_brightness (string)
               Item : friendly_name (string)
               Item : supported_features (string)
greenLevel : None
id : 37782922
lastChanged : 2024-01-19 10:37:29
lastSuccessfulComm : 2024-01-19 10:37:29
ledStates : []
model : Home Assistant Light
name : Garage West
onBrightensToDefaultToggle : False
onBrightensToLast : False
onState : False
ownerProps : no.homeassistant.plugin : (dict)
     SupportsStatusRequest : false (bool)
     address : light.signify_netherlands_b_v_lct001_light_2 (string)
     states_list : (list)
          Item : min_color_temp_kelvin (string)
          Item : max_color_temp_kelvin (string)
          Item : min_mireds (string)
          Item : max_mireds (string)
          Item : effect_list (string)
          Item : supported_color_modes (string)
          Item : color_mode (string)
          Item : brightness (string)
          Item : color_temp_kelvin (string)
          Item : color_temp (string)
          Item : hs_color (string)
          Item : rgb_color (string)
          Item : xy_color (string)
          Item : effect (string)
          Item : off_with_transition (string)
          Item : off_brightness (string)
          Item : friendly_name (string)
          Item : supported_features (string)
pluginId : no.homeassistant.plugin
pluginProps : emptyDict : (dict)
protocol : Plugin
redLevel : None
remoteDisplay : True
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
     actual_state : on (string)
     brightness : 128 (integer)
     brightnessLevel : 0 (integer)
     color_mode : color_temp (string)
     color_temp : 500 (integer)
     color_temp_kelvin : 2000 (integer)
     effect : null (string)
     effect_list : ["colorloop"] (string)
     friendly_name : Garage Lantern West Light (string)
     hs_color : [30.601, 94.547] (string)
     lastUpdated : 2024-01-19T15:37:29.556027+00:00 (string)
     max_color_temp_kelvin : 6535 (integer)
     max_mireds : 500 (integer)
     min_color_temp_kelvin : 2000 (integer)
     min_mireds : 153 (integer)
     off_brightness : null (string)
     off_with_transition : false (bool)
     onOffState : off (on/off bool)
     rgb_color : [255, 136, 13] (string)
     supported_color_modes : ["color_temp", "xy"] (string)
     supported_features : 44 (integer)
     xy_color : [0.599, 0.382] (string)
subModel :
subType :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsColor : False
supportsOnState : True
supportsRGB : False
supportsRGBandWhiteSimultaneously : False
supportsStatusRequest : False
supportsTwoWhiteLevels : False
supportsTwoWhiteLevelsSimultaneously : False
supportsWhite : False
supportsWhiteTemperature : False
version : None
whiteLevel : None
whiteLevel2 : None
whiteTemperature : None

Re: Different "On State" than actual_state

PostPosted: Fri Jan 19, 2024 9:46 am
by eme jota ce
FlyingDiver wrote:
I was able to replicate the issue on my system. Working on a fix now.


Thanks!

Re: Different "On State" than actual_state

PostPosted: Wed Jan 24, 2024 1:18 pm
by eme jota ce
FlyingDiver wrote:
I was able to replicate the issue on my system. Working on a fix now.


2023.4.1 fixed this, for me.
Thank you :D


I am seeing the following error in the Log:
Code: Select all
  Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "homekit_state_change", "data": {"entity_id": "light.signify_netherlands_b_v_lct001_light", "display_name": "Brass Lamp Light", "service": "turn_on", "value": "Set state to True"}, "origin": "LOCAL", "time_fired": "2024-01-24T19:16:32.479653+00:00", "context": {"id": "01HMYEE42ZKNG71FCHVMYMCK8H", "parent_id": null, "user_id": null}}, "id": 1}


Turned on Debugging (below) and see the following in the Log when I toggle the device on & off in Indigo and in Home assistant without error, but when using Siri and Apple Home app, the "Home Assistant Agent Warning" shows in the log.

Code: Select all
   {TURN ON via Indigo or Home Assistant [/u] shows no problems (below):   
Home Assistant Agent Debug      Brass Lamp: sending TurnOn (0) to light.signify_netherlands_b_v_lct001_light
   Home Assistant Agent Debug      call_service event: light turn_on ['light.signify_netherlands_b_v_lct001_light']
   Home Assistant Agent Debug      call_service event: light turn_on ['light.signify_netherlands_b_v_lct001_light']
   Home Assistant Agent Debug      Updating device Brass Lamp with {'entity_id': 'light.signify_netherlands_b_v_lct001_light', 'state': 'on', 'attributes': {'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': 'color_temp', 'brightness': 128, 'color_temp_kelvin': 2732, 'color_temp': 366, 'hs_color': [28.327, 64.71], 'rgb_color': [255, 167, 89], 'xy_color': [0.524, 0.387], 'effect': None, 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Brass Lamp Light', 'supported_features': 44}, 'last_changed': '2024-01-24T19:24:35.847022+00:00', 'last_updated': '2024-01-24T19:24:35.847022+00:00', 'context': {'id': '01HMYEWW2H3K0ZC9XS4SRD6P74', 'parent_id': None, 'user_id': 'd70ea7ecd07e48b4a2cf3def48dd56d3'}}
   Home Assistant Agent Debug      Updating device Brass Lamp with {'entity_id': 'light.signify_netherlands_b_v_lct001_light', 'state': 'on', 'attributes': {'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': 'color_temp', 'brightness': 128, 'color_temp_kelvin': 2732, 'color_temp': 366, 'hs_color': [28.327, 64.71], 'rgb_color': [255, 167, 89], 'xy_color': [0.524, 0.387], 'effect': None, 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Brass Lamp Light', 'supported_features': 44}, 'last_changed': '2024-01-24T19:24:35.847022+00:00', 'last_updated': '2024-01-24T19:24:35.847022+00:00', 'context': {'id': '01HMYEWW2H3K0ZC9XS4SRD6P74', 'parent_id': None, 'user_id': 'd70ea7ecd07e48b4a2cf3def48dd56d3'}}
   Home Assistant Agent Debug      Websocket reply Success for call_service

{Turn ON via Siri (or Apple Home App}
Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "homekit_state_change", "data": {"entity_id": "light.signify_netherlands_b_v_lct001_light", "display_name": "Brass Lamp Light", "service": "turn_on", "value": "Set state to True, brightness at 60%"}, "origin": "LOCAL", "time_fired": "2024-01-24T19:27:24.409411+00:00", "context": {"id": "01HMYF20QSYNMY8AV6133QHD97", "parent_id": null, "user_id": null}}, "id": 1}
   Home Assistant Agent Warning    Websocket unknown message type: {"type": "event", "event": {"event_type": "homekit_state_change", "data": {"entity_id": "light.signify_netherlands_b_v_lct001_light", "display_name": "Brass Lamp Light", "service": "turn_on", "value": "Set state to True, brightness at 60%"}, "origin": "LOCAL", "time_fired": "2024-01-24T19:27:24.409411+00:00", "context": {"id": "01HMYF20QSYNMY8AV6133QHD97", "parent_id": null, "user_id": null}}, "id": 7}[/b]
   Home Assistant Agent Debug      call_service event: light turn_on light.signify_netherlands_b_v_lct001_light
   Home Assistant Agent Debug      call_service event: light turn_on light.signify_netherlands_b_v_lct001_light
   Home Assistant Agent Debug      Updating device Brass Lamp with {'entity_id': 'light.signify_netherlands_b_v_lct001_light', 'state': 'on', 'attributes': {'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': 'color_temp', 'brightness': 153, 'color_temp_kelvin': 2732, 'color_temp': 366, 'hs_color': [28.327, 64.71], 'rgb_color': [255, 167, 89], 'xy_color': [0.524, 0.387], 'effect': None, 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Brass Lamp Light', 'supported_features': 44}, 'last_changed': '2024-01-24T19:27:24.471501+00:00', 'last_updated': '2024-01-24T19:27:24.471501+00:00', 'context': {'id': '01HMYF20QSYNMY8AV6133QHD97', 'parent_id': None, 'user_id': None}}
   Home Assistant Agent Debug      Updating device Brass Lamp with {'entity_id': 'light.signify_netherlands_b_v_lct001_light', 'state': 'on', 'attributes': {'min_color_temp_kelvin': 2000, 'max_color_temp_kelvin': 6535, 'min_mireds': 153, 'max_mireds': 500, 'effect_list': ['colorloop'], 'supported_color_modes': ['color_temp', 'xy'], 'color_mode': 'color_temp', 'brightness': 153, 'color_temp_kelvin': 2732, 'color_temp': 366, 'hs_color': [28.327, 64.71], 'rgb_color': [255, 167, 89], 'xy_color': [0.524, 0.387], 'effect': None, 'off_with_transition': False, 'off_brightness': None, 'friendly_name': 'Brass Lamp Light', 'supported_features': 44}, 'last_changed': '2024-01-24T19:27:24.471501+00:00', 'last_updated': '2024-01-24T19:27:24.471501+00:00', 'context': {'id': '01HMYF20QSYNMY8AV6133QHD97', 'parent_id': None, 'user_id': None}}