ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
610 stars 140 forks source link

Refactor bloated flora containers and convention into Classes #107

Open ThomDietrich opened 4 years ago

ThomDietrich commented 4 years ago

Stating the obvious. Before we continue with new features, I intend to refactor this whole project. The initial script structure was never suited for the complexity we've reached by now.

Feel free to add suggestions. You can expect a PR in the next two weeks.

ThomDietrich commented 4 years ago

I envision an architecture in which a device is pretty much self-contained, dealing with it's configuration, btle sensor reading, and MQTT communication independently of all other sensors.

OnnoH commented 3 years ago

Have you done any work on this?

Is your idea to have a config per device/sensor, besides the obvious global settings? Guess you answered this in #111 ;-)

ThomDietrich commented 3 years ago

@OnnoH never any steps forward. Partially due to new lifestyle in the homeoffice times :)