-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTTThing + Mi Flower Care #149
Comments
Especially for iOS 13 this would be interesting. With iOS <=12 HomeApp will show one tile per Service(!) even if the belong to the same accessory. With iOS 13 there will be one tile per Accessory. If an accessory held multiple services (e.g. TemperatureSensor, HumiditySensor, LightSensor) they will be grouped. At the moment all "types" (=possible [combinations of] services and their characteristics) are defined by this MqttThing-Plugin. It would be great, if it was possible to offer kind of a „custom type“ accessory, where you can freely choose/mix multiple services. As a first step maybe only for a "custom sensor accessory" with just read-Characteristics. As a second step for completely free combinations. This would also be great for experimenting... |
See also #144 |
I already use iOS 13 and there is no custom accessory :/ |
There are no custom (service/characteristic) types, which will be shown within Apples Home App, right. (Different in Eve App, where custom characteristics are shown.) But for HomeKit default services, they will be grouped. |
Interesting idea, and shouldn’t be too hard to do. I’ll have a look at your ‘custom sensor’ idea when I get a chance. It shouldn’t be too hard using the existing topics etc. |
But how can i do a sensor for "light" and "conductivity"? (for Mi Flower)? regards |
hello, there are news about this accessory? conductivity is not supported in home app but light is, it's a possibility to create an accessory with humidity, temperature and light sensor? |
Yes, you should be able to configure that now. Can you share example MQTT messages for the properties? |
this is my solution for now: but so I can't insert the brightness |
sure!
|
Here's a configuration for humidity, temperature and light sensors: {
"accessory": "mqttthing",
"type": "custom",
"name": "Flower Care",
"url": "homebridge",
"logMqtt": true,
"codec": "json",
"jsonCodec": {
"properties": {
"currentRelativeHumidity": "moisture",
"currentTemperature": "temperature",
"currentAmbientLightLevel": "light",
"statusLowBattery": "battery"
}
},
"services": [
{
"type": "humiditySensor",
"topics": {
"getCurrentRelativeHumidity": "miflora/Limone",
"getStatusLowBattery": { "topic": "miflora/Limone", "apply": "return message < 20;" }
}
},
{
"type": "temperatureSensor",
"topics": {
"getCurrentTemperature": "miflora/Limone",
"getStatusLowBattery": { "topic": "miflora/Limone", "apply": "return message < 20;" }
}
},
{
"type": "lightSensor",
"topics": {
"getCurrentAmbientLightLevel": "miflora/Limone",
"getStatusLowBattery": { "topic": "miflora/Limone", "apply": "return message < 20;" }
}
}
]
}, Uses grouped (custom) accessories and the JSON codec. |
wow thank you works great, only one thing, there is a possibility to add "history": "true",? |
Hi Guys,
I use this plugin to get some informations from my Mi Flower Care to my HomeKit, but I have some Problems.
At the moment I get the humidity, battery and Temperatur. What I also need is:
"light" and "conductivity".
And is there a way to show (at homekit) all in 1 „device“?
Thanks!
The text was updated successfully, but these errors were encountered: