Closed honcheng closed 6 years ago
You can use customize to set homebridge_sensor_type
to humidity
and it will be populated in Homebridge.
This PR just makes another special case, I don't think it's really necessary.
New to Homebridge so apologize for the noob question. In your opinion, should the homebridge_sensor_type to humidity change be submitted as a PR to the Xioami flower plugin?
I'd also like this to work and am more than happy to submit the PR. Just trying to wrap my mind around the framework.
@netmanchris you don't need a PR, you can use customisation to set that. I think this PR is not helpful as it uses string matching on entityId for a very special case.
Xiaomi Flora has support for soil moisture, which is equivalent to humidity. But the homebridge_sensor_type is undefined, so it has to be matched by entity_id.