flatsiedatsie / Mi_Flower_mate_plugin

A plugin for Domoticz, the open source home automation software, which allows it to easily connect to Xiaomi Mi Flower Mate devices
GNU General Public License v3.0
13 stars 5 forks source link

Conductivity devices created without unit #12

Closed BabaIsYou closed 3 years ago

BabaIsYou commented 3 years ago

Hi,

The conductivity devices are created without any unit, then when someone want to change something (description, icon, name ...) it generates a pop-up in Domoticz asking for a unit before saving modifications. When you add a default unit (ie : µS/cm that seems to be the unit in apps) this is correct and you can save your changes.

Can it be added at the creation of the device ?

flatsiedatsie commented 3 years ago

I'm sorry the answer is: I have no idea. I don't use Domoticz anymore, and this plugin is very old. The code is open source, so feel free to try and fix it.

BabaIsYou commented 3 years ago

Hi. That's what i did. Plus some other things and a pull request if you want to add these stuff in the main branch.