Skip to content
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

Some enhancements #1

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

Some enhancements #1

wants to merge 4 commits into from

Conversation

zaubererty
Copy link

Added Docker support
Enhanced pip setup
streamlined MQTT nodes and added device for more structure

@@ -371,27 +377,44 @@ async def updateValues(self, mqttc):
if "calc" in self.statusValues[stateId]:
state["value"] = self.statusValues[stateId]["calc"](state["value"])
_LOGGER.info("%s -> %s(%s)" %(self.statusValues[stateId]["statusName"], state["textId"], state["value"]))
stopic = "skoda2mqtt/%s_%s/STATE"% (vin, self.statusValues[stateId]["statusName"])
stopic = "skoda2mqtt/%s/%s/STATE"% (vin, self.statusValues[stateId]["statusName"])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot nest that much if you want this to be working with Home Assistant. I was not able to get anything with more than one nesting level (skoda2mqtt/<measurement_name>/STATE) working. Please revert this before I can merge the PR.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have it running that way some months (HA 0.115 till HA 0.118)
What I have found is if the discovery topic is not retained then the HA has to be started before this starts.

I would change the retain state of the discovery topic.


WORKDIR /usr/src/app

RUN git clone https://github.com/zaubererty/sc2mqtt.git .
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refer to the original repo here, not to a fork.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Valid point, going to change that

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

Successfully merging this pull request may close these issues.

2 participants