jacobdonenfeld/homeassistant-aerogarden

Unable to add Aerogarden FarmXL

Opened this issue · 6 comments

It seemed to have pulled in 2 lights on the FarmXL with the proper name in the app, but I keep getting this error when trying to turn the lights on/off:

Failed to call service light/turn_on. %d format: a real number is required, not NoneType

The toggle will show the status of the light, but will not allow me to change the status. All other sensors seem to be working fine.

Thank you for the information! Hard for me to dig into this without having multiple devices, but will try setting up this integration from scratch and try digging into this deeper in about a week.

You're welcome dude. If you want access to my homeassistant instance for troubleshooting, let me know. Otherwise, I'm very satisfied with it so far and have no complaints otherwise. I'm glad you decided to keep updating this fork!

Seems the error only exists with the RIGHT light/chamber, and not the left. The left simply toggles OFF, waits, and then toggles back to ON without error.

Also, interesting info for the FarmXL series since they have 2 grow chambers... when you add a FarmXL, it will come up with all attributes named [DEVICE] for the left chamber, and [DEVICE]_right for the other chamber. Not sure if it is worth changing or not, but it may help when troubleshooting the API code.

2 grow chambers...
Do you know if these have the same mac address?

Would love if you could install the latest version of the plugin, turn on debug logs, and send me the responses from POST requests to their api.

Alternatively, would love to take you up on getting access to your home assistant to test code live and fix this! Feel free to shoot me an email (on my profile)

Hey Jacob,

I'll email you shortly!

My FarmXL works great, aside from the lights – did you have a chance to debug that?