Git Product home page Git Product logo

Comments (7)

heidasch avatar heidasch commented on May 25, 2024 2

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.

wubbl0rz avatar wubbl0rz commented on May 25, 2024

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.

heidasch avatar heidasch commented on May 25, 2024

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.

heidasch avatar heidasch commented on May 25, 2024

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.

wubbl0rz avatar wubbl0rz commented on May 25, 2024

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.

heidasch avatar heidasch commented on May 25, 2024

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.

wubbl0rz avatar wubbl0rz commented on May 25, 2024

ah nice good to know 😄

from fiatchamp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.