Open k41zen opened 3 years ago
I have some lights and I've been wanting to do the same and every few months I revisit the packet logs and see if if the light levels are useful but they don't seem to contain anything of value.
Out of curiosity, which lights do you have?
edit: It's the alsReading
if you want to take a look. Mine never seems to change.
Sorry for the late reply. Mine is the Arlo Security Light. How would I find that alsReading value?
You need to turn on verbose debug, add this to the aarlo
section of configuration.yaml
:
aarlo:
# you other config
verbose_debug: True
And you need to turn on logging:
logger:
default: info
logs:
custom_components.aarlo: debug
pyaarlo: debug
Then restart HA. With all that in place you will get packets coming from Arlo saved into the log. You can look for alsReading
in there. Here is the top of the output from one of my lights:
2021-04-13 22:52:09 DEBUG (ArloEventStream) [pyaarlo] packet-in=
{ 'action': 'is',
'from': 'XXXXXXXXXXXX',
'properties': [ { 'activityState': 'idle',
'alsReading': 0,
'alsSensitivity': 15,
...
And just keep an eye on the values, if they change with the light levels then I can expose them as a sensor.
Also, if you can some small packets that update the alsReading that would be great. Something like this:
{ 'action': 'is',
'from': 'XXXXXXXXXXXX',
'properties': {'alsReading': 25},
'resource': 'cameras/XXXXXXXXXXXX',
'transId': 'XXXXXXXXXXXX!2a6b8945!1618378705027'}
That would mean a pretty quick update of the sensor.
Ok great. Added and restarted. Will let you know 🤞🏻
Only 1 logged atm but it's not reading 0 for sure. Will look again later this evening:
2021-04-20 15:44:49 DEBUG (ArloEventStream) [pyaarlo] packet-in= { 'action': 'is', 'from': '59H1865L007CD', 'properties': [ { 'activityState': 'idle', 'alsReading': 26472, 'alsSensitivity': 15, 'armed': True, 'batteryLevel': 36, 'batteryTech': 'Rechargeable', 'brightness': 252, 'chargeNotificationLedEnable': False, 'chargerTech': 'None', 'chargingState': 'Off', 'colorMode': 'white', 'connectionState': 'available', 'duration': 300, 'flash': 'off', 'hwVersion': 'AL1101r4', 'interfaceVersion': 2, 'lampState': 'off', 'modelId': 'AL1101', 'motionDetected': False, 'motionSetupModeEnabled': False, 'motionSetupModeSensitivity': 80, 'multi': { 'color1': '0xFF0008', 'color2': '0x23FF02', 'color3': '0x2100FF', 'cycle': 2}, 'name': '', 'pattern': 'flood', 'sensitivity': 80, 'serialNumber': '5FW186550166F', 'signalStrength': 0, 'single': '0xFF0008', 'sleepTime': 0, 'sleepTimeRel': 0, 'swVersion': '3.2.51', 'updateAvailable': None}], 'resource': 'lights', 'to': 'XP2G-335-54709376_web', 'transId': 'web!130f3567-92c8-42ed-ac49-2c1ad3f1869f'}
Looks like its not changing:
2021-04-20 18:24:48 DEBUG (ArloEventStream) [pyaarlo] packet-in= { 'action': 'is', 'from': '59H1865L007CD', 'properties': [ { 'activityState': 'idle', 'alsReading': 26472, 'alsSensitivity': 15, 'armed': True, 'batteryLevel': 36, 'batteryTech': 'Rechargeable', 'brightness': 252, 'chargeNotificationLedEnable': False, 'chargerTech': 'None', 'chargingState': 'Off', 'colorMode': 'white', 'connectionState': 'available', 'duration': 300, 'flash': 'off', 'hwVersion': 'AL1101r4', 'interfaceVersion': 2, 'lampState': 'off', 'modelId': 'AL1101', 'motionDetected': False, 'motionSetupModeEnabled': False, 'motionSetupModeSensitivity': 80, 'multi': { 'color1': '0xFF0008', 'color2': '0x23FF02', 'color3': '0x2100FF', 'cycle': 2}, 'name': '', 'pattern': 'flood', 'sensitivity': 80, 'serialNumber': '5FW186550166F', 'signalStrength': 0, 'single': '0xFF0008', 'sleepTime': 0, 'sleepTimeRel': 0, 'swVersion': '3.2.51', 'updateAvailable': None}], 'resource': 'lights', 'to': 'XP2G-335-54709376_web', 'transId': 'web!6d10e851-25eb-4452-9bd3-b423b3d4cbcd'}
Keep an eye on it. I'd love for it to work.
I wonder if there is a way to get it to check the level, I've just never been able to find something on the web site.
Just checked the logs and that figure doesn't change at all which is a shame.
Is it possible to check the LUX levels on an Arlo light to then be able to turn other garden lights on?