raetha / wyzesense2mqtt

Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
MIT License
80 stars 22 forks source link

CLI Tool Should Update Sensors Config File #11

Open raetha opened 4 years ago

raetha commented 4 years ago

Currently if a sensor is paired or removed by the CLI tool, it will not update the sensors configuration file. This could result in incomplete sensor entries, or old data that is no longer needed, but still processed by the service.

A balance should be maintained between the CLI tool being a debugging tool, and it becoming a copy of the service, but the sensors configuration might be a reasonable balance.

Pairing also appears to be the only time to get the sensor version string currently, so this will allow versions to be passed to HA for CLI paired sensors.

Related to issues caused by Issue #9.