Skip to content

How to convert a sensor on-the-fly from date to delta t #70

Answered by dbuezas
AleXSR700 asked this question in Q&A
Discussion options

You must be logged in to vote

Solution:

type: custom:plotly-graph
entities:
  - entity: sensor.esp32_wroom_32d_devkitc_v4_1_last_restart_time
    lambda: (ys) => ys.map((y => Date.now() - Date.parse(y))/1000)
    unit_of_measurement: s

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@AleXSR700
Comment options

@dbuezas
Comment options

@AleXSR700
Comment options

@dbuezas
Comment options

@AleXSR700
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dbuezas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants