Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Support multiple stations and Home Assistant MQTT Discovery #32

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

diversit
Copy link

Hi,
Thanks for this nice project.
I used to extend it a bit so it has option support for Home Assistant MQTT Discovery. This means, when the. feature is enabled, the bridge automatically publishes configuration for each data entity to a topic so Home Assistant automatically can discover new data entities.
I also added support for multiple stations by adding the station name to the topic on which the data is published. Note: this is a breaking change if your setup expects a different topic structure.

Hereby I wish to contribute back to your project.
For you the choice whether to accept it or not.
Cheers, Joost

@lgtm-com
Copy link

lgtm-com bot commented Jan 19, 2021

This pull request introduces 1 alert and fixes 2 when merging dadcac8 into cc33e37 - view on LGTM.com

new alerts:

  • 1 for Missing variable declaration

fixed alerts:

  • 2 for Unused variable, import, function or class

diversit and others added 5 commits May 24, 2021 20:14
… will automatically pickup these values again on restart.

Add mosquitto to docker-compose for simpler debugging since mosquitto requires some config to work with docker.
Fixed status topic so it's consistent and uses same config setting.
…nstance

loading passwords from a file, retaining messages and storing data in a local folder.
Ignore docker-compose related files from docker build.
… config. Data might be missing when module out of battery?
@terafin
Copy link
Owner

terafin commented Jun 26, 2021

@diversit This looks wonderful, sorry for missing this for so long! I updated dependences in this PR. If it's ready to go, let me know, happy to merge this!

@lgtm-com
Copy link

lgtm-com bot commented Jun 26, 2021

This pull request introduces 1 alert and fixes 2 when merging 445f9dd into a5211b2 - view on LGTM.com

new alerts:

  • 1 for Missing variable declaration

fixed alerts:

  • 2 for Unused variable, import, function or class

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants