Closed HotshotGT closed 1 year ago
On the Hubitat side, does the driver have a setting for the number of buttons? If so, does it have a value?
From the error, it looks like the device is returning null
for its number of buttons.
I don't seem to have a configuration option for that:
I'm using the "Xiaomi Aqara Mijia Sensors and Switches" driver available in the package manager. I've noticed that it creates some HA entities for non-functional sensors on this device (humidity, water, pressure, etc), so I wouldn't mind switching if there's another generic/custom driver that will work better.
Edit: I think I just fixed it. The entity "sensor.button_numberofbuttons" that was created when the button was added through the Hubitat integration was disabled by default. I enabled it, reloaded the integration, and now I no longer get the error. The "Trigger" field under the device trigger in the automation was also blank before, but now it's showing different button press types.
Interesting. I would not have expected that to make a difference for device triggers, but it's good that it did. The integration should really be handling that case (unknown number of buttons) a bit more gracefully. 😄
Interesting. I would not have expected that to make a difference for device triggers, but it's good that it did. The integration should really be handling that case (unknown number of buttons) a bit more gracefully. 😄
Eh, no big deal, just took me a while to figure out where it was getting confused since the initial error message was broken, lol. I appreciate all the work you've put into the project so far regardless. :D
I'm attempting to create a basic automation that turns on a light when my Aqara button is pressed, but I'm running into an error when I try to save it:
The actual error in the system log:
The "pushed" event looks like it's making it to the event server when I press the button:
I'm using the "device" trigger type per the documentation, but I'm not sure if I'm doing something wrong or if there's something else I need to configure. My other Zigbee devices connected to the Hubitat seem to work just fine in automations.