Skip to content

Some enhancements#1

Open
zaubererty wants to merge 4 commits intoDBa2016:masterfrom
zaubererty:master
Open

Some enhancements#1
zaubererty wants to merge 4 commits intoDBa2016:masterfrom
zaubererty:master

Conversation

@zaubererty
Copy link
Copy Markdown

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

Comment thread sc2mqtt.py
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
Copy Markdown
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
Copy Markdown
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.

Comment thread Dockerfile

WORKDIR /usr/src/app

RUN git clone https://github.com/zaubererty/sc2mqtt.git .
Copy link
Copy Markdown
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
Copy Markdown
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