Comments (7)
Here's my HA-Code that works for me:
#Car timestamp
- platform: template
sensors:
wh_car_timestamp:
value_template: >-
{{ as_timestamp(as_datetime("1970-01-01 00:00:00.000000+01:00")+timedelta( milliseconds = states('sensor.car_timestamp')|int))|timestamp_custom('%d.%m.%Y %H:%M') }}
Offers me the timestamp on the surface like this: 13.03.23 09:15
Regards and thanks
Wolfgang
from fiatchamp.
looks like unix time in milliseconds. so its milliseconds elapsed since 1.1.1970 UTC. in home assistant it should be convertible with a template sensor or template card in the frontend. i don't know off the top of my head how exactly.
but does this timestamp mean anything important ? looks like a generic timestamp thats internally used by the fiat app to show last refresh time or something like that.
from fiatchamp.
Thanks for the info wubbl0rz. I'll try and let you know.
As far as I wasn't able to decode the values in the past I have no clue what they could mean.
In fact there are three (different) timestamps:
car_evInfo_timestamp=1678431056968
car_timestamp=1678431056968
car_vehicleInfo_timestamp=1678430828730
Regards
Wolfgang
from fiatchamp.
You're right wubbl0rz. It's UTC+1 plus the value, which is in milliseconds.
The two different timestamps have a delta of around 3 minutes, no clue why and what that represents. Both values are around the time when the car was last connected via mobile.
from fiatchamp.
nice good to know 😄 what is your use case with the timestamp or why do you want to see it ? does it give any meaningful information ?
from fiatchamp.
Well, this timestamp seem to be the timestamp when all the data has been updated the last time. That's important for me, as my car is normally placed in my basement garage. The car uses mobile radio to communicate its data to the server. The car has a wifi module built in, though it doesn't use it to send its data. So, in my garage I have simply no connection. With the timestamp I see when the data has been fetched and so I have an idea, how good that (old) data is. I have extended my wifi to the garage but I have no mobile coverage. So, my pretty modern, new car is simply disconnected when I am at home and e.g. want to know how much energy is left before I start the charging process (because I like to charge not more than 80 %).
from fiatchamp.
ah nice good to know 😄
from fiatchamp.
Related Issues (20)
- Door lock status HOT 2
- Multiple Cars HOT 2
- No Devices and No Entities listed in MQTT HOT 2
- FiatChamp Refresh Interval always 15 minutes HOT 32
- No vehicles returned - RAM HOT 7
- HA 2024 Compatibility HOT 2
- Error connecting HOT 1
- fiatchamp does not work in a standalone container HOT 2
- Charging level control via API HOT 2
- Not working HOT 3
- "Account temporarily locked out" HOT 1
- Got unexpected response from the API: Service not enabled HOT 2
- No support for Chrysler
- Bad Gateway HOT 1
- Not Loading Vehicles
- arm64 version ?
- App Running, calls to API working, MQTT posting labels but no data coming through. HOT 3
- Not working with Fiat 600e HOT 2
- Set the car Charging Level HOT 1
- Error connecting to the FIAT API
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 fiatchamp.