-
Notifications
You must be signed in to change notification settings - Fork 28
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
add odometer event / topic #351
Conversation
Thanks for your contribution 🎉 Two questions:
|
Unfortunately the message does not contain any valuable information. Only userId_and vin.
|
Added service event name for odometer (change-odometer) and test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for bringing support for these topics, the PR is looking good 👍.
I do have one online question.
@@ -167,6 +172,7 @@ async def _connect_and_listen(self) -> None: | |||
_LOGGER.info("Connected to MQTT") | |||
_LOGGER.debug("using MQTT client %s", client) | |||
for vin in self.vehicle_vins: | |||
# await client.subscribe(f"{self.user_id}/{vin}/#") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add this remark?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was an mistake that I left this in the commit. I'll toggle the comment to subscribe to all topics.
It drives me crazy that changes in my repo are automatically added to the pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will accept this with the remark in the code, we can clean it up later 🧹
add the following topic and corresponding event:
/{user_id}/{vin}/service-event/vehicle-status/odometer