Comments (8)
I would like to make sure I understand the intent here. The idea is to group similar topics into a single topic with a json payload.
for example
/teslamate/cars/1/latitude = 1234
and
/teslamate/cars/1/longitude = 1234
would be made available as
/teslamate/cars/1/location = {"latitude":123,"longitude":1234}
but not to group all topics into a single json payload...
/teslamate/cars/1 = { <all of the keys and values....> }
While I can see the value in grouping lat
and long
into location
as they will be consumed together... grouping too many topics together negates the flexibility and scalability that MQTT provides by design.
from teslamate.
Also in regards to the other discussion #3657 It would be nice to have the distance and minutes to destination into MQTT so that I could automate things for my Home Assistant instance.
That's already merged and will be included in the next release.
Just confirming that my PR did not include distance and minutes in the MQTT output, I only added it to the state parser
from teslamate.
Tagging @tobiasehlert and @brchri as their projects consume Teslamate MQTT payloads.
from teslamate.
Continued discussion from #3657, focussed on active drive navigation data:
I fully agree, for "same time define data" such as latlong and initial navigation state. For the other travel ETA's not so much, these update throughout the journey, which will require to update the complete blob. It is likely that the latlong will be set (data will be pushed/updated) and the route will still be calculating, resulting in two messages anyway, not solving the issue. This can be tested
Also adding more stuff to a big json requires the processing client (often HA) to parse this json, where normally an mqtt topic can be read easily.
I think both ways can be done and advocated for, zigbee2mqtt is more json based too, but i'd suggest to not wait for a possible complete revamp of the mqtt structure for this awesome change already.
from teslamate.
Also in regards to the other discussion #3657 It would be nice to have the distance and minutes to destination into MQTT so that I could automate things for my Home Assistant instance.
from teslamate.
Also in regards to the other discussion #3657 It would be nice to have the distance and minutes to destination into MQTT so that I could automate things for my Home Assistant instance.
That's already merged and will be included in the next release.
from teslamate.
Correct, the idea is to bundle the data which belongs together, like position data in one Json blob, time and distance to destination.
from teslamate.
Just confirming that my PR did not include distance and minutes in the MQTT output, I only added it to the state parser
Thanks for clarification, absolutely right.
from teslamate.
Related Issues (20)
- Intermittent charges incorrectly recorded HOT 15
- Impossible GPS coordinates HOT 1
- Suspend logging is not needed anymore as car falls asleep even while polling HOT 47
- Can't get the carId . already logging by the tesla token! HOT 2
- Release 1.28.3 seemingly not correctly pushed as arm64 image HOT 1
- WebView crashes while charging, if time_zone_not_found HOT 7
- Drive records are not saved HOT 4
- No connection to Tesla API / non-existing domain *done* HOT 3
- Trips with negative gradient do not record correctly HOT 8
- Wrong time zone for estimated charge end, TZ environment variable set correctly HOT 9
- New Model Y does not get discovered in version 1.28.3 HOT 1
- Model S MCU1 sleep issues HOT 16
- Battery Health - LFP - Status: 500. Message: convert frame from rows error: pq: division by zero HOT 4
- Has edge been updated? HOT 3
- TZ environment variable name confusion HOT 22
- Error on QNAP TS-231P3 HOT 1
- Extend version with more build info HOT 5
- Some address could not be displayed HOT 1
- Battery Health not showing on new cars? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teslamate.