MacBook I decided to try Home Assistant Agent.
This works great as the Presence and Lux values are correct but the GUI state shows ‘off’ and I get an error each time the lux changes
- Code: Select all
Error device "Aqara FP2 Lux Sensor Via Home Assistant" state key sensorValue not defined (ignoring update request)
I have modified the code to ignore the error but I would need to change it every time you update the plugin.
The diagnostics from HA for this device shows.
And the Indigo Lux and Presence device details
- Code: Select all
Script address : binary_sensor.presence_sensor_fp2_689f_presence_sensor_1
allowOnStateChange : False
allowSensorValueChange : False
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : HAbinarySensorType
displayStateId : onOffState
displayStateImageSel : MotionSensorTripped
displayStateValRaw : True
displayStateValUi : on
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 603788583
globalProps : MetaProps : (dict)
no.homeassistant.plugin : (dict)
SupportsOnState : true (bool)
SupportsSensorValue : false (bool)
SupportsStatusRequest : false (bool)
address : binary_sensor.presence_sensor_fp2_689f_presence_sensor_1 (string)
states_list : (list)
Item : device_class (string)
Item : friendly_name (string)
id : 408117572
lastChanged : 2024-03-03 15:00:11
lastSuccessfulComm : 2024-03-03 15:00:11
model : Home Assistant Binary Sensor
name : Aqara FP2 Presence Sensor Via Home Assistant
onState : True
ownerProps : no.homeassistant.plugin : (dict)
SupportsOnState : true (bool)
SupportsSensorValue : false (bool)
SupportsStatusRequest : false (bool)
address : binary_sensor.presence_sensor_fp2_689f_presence_sensor_1 (string)
states_list : (list)
Item : device_class (string)
Item : friendly_name (string)
pluginId : no.homeassistant.plugin
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sensorValue : None
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
actual_state : on (string)
device_class : occupancy (string)
friendly_name : Living Room FP2 Presence (string)
lastUpdated : 2024-03-03T15:00:11.380432+00:00 (string)
onOffState : on (on/off bool)
subModel :
subType :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : True
supportsSensorValue : False
supportsStatusRequest : False
version : None
3 Mar 2024 at 15:13:38
Script address : sensor.presence_sensor_fp2_689f_light_sensor_light_level
allowOnStateChange : False
allowSensorValueChange : False
batteryLevel : None
buttonGroupCount : 0
configured : True
description :
deviceTypeId : HAsensor
displayStateId : onOffState
displayStateImageSel : NoImage
displayStateValRaw : False
displayStateValUi : off
enabled : True
energyAccumBaseTime : None
energyAccumTimeDelta : None
energyAccumTotal : None
energyCurLevel : None
errorState :
folderId : 603788583
globalProps : MetaProps : (dict)
no.homeassistant.plugin : (dict)
SupportsOnState : true (bool)
SupportsSensorValue : false (bool)
SupportsStatusRequest : false (bool)
address : sensor.presence_sensor_fp2_689f_light_sensor_light_level (string)
states_list : (list)
Item : state_class (string)
Item : unit_of_measurement (string)
Item : device_class (string)
Item : friendly_name (string)
id : 70681190
lastChanged : 2024-03-03 15:07:49
lastSuccessfulComm : 2024-03-03 15:07:49
model : Home Assistant Value Sensor
name : Aqara FP2 Lux Sensor Via Home Assistant
onState : False
ownerProps : no.homeassistant.plugin : (dict)
SupportsOnState : true (bool)
SupportsSensorValue : false (bool)
SupportsStatusRequest : false (bool)
address : sensor.presence_sensor_fp2_689f_light_sensor_light_level (string)
states_list : (list)
Item : state_class (string)
Item : unit_of_measurement (string)
Item : device_class (string)
Item : friendly_name (string)
pluginId : no.homeassistant.plugin
pluginProps : emptyDict : (dict)
protocol : Plugin
remoteDisplay : True
sensorValue : None
sharedProps : com.indigodomo.indigoserver : (dict)
states : States : (dict)
actual_state : 29 (string)
device_class : illuminance (string)
friendly_name : Living Room FP2 Lux (string)
lastUpdated : 2024-03-03T15:07:49.442662+00:00 (string)
onOffState : off (on/off bool)
state_class : measurement (string)
unit_of_measurement : lx (string)
subModel :
subType :
supportsAllLightsOnOff : False
supportsAllOff : False
supportsOnState : True
supportsSensorValue : False
supportsStatusRequest : False
version : None