#dashbord entities timestamp to ddmmyyyy_hhmmss

1 messages · Page 1 of 1 (latest)

hoary mantle
#

HA create me the image view and I want to customize it. (Sorry but i can't post the picture. See code lower)

The first yellow fluo, I would like to convert the timestamp to hh:mm:ss dd/mm/yyyy type
The 2nd yellow fluo converts the 0.00 into a simple on/off status (not controllable)

I've been searching google for 48 hours, but I can't find anything.
If you have an example that works, I'm interested.

#

Example :

type: entities
entities:

  • entity: sensor.mqtt_esp01_boottime_longformat
  • entity: sensor.mqtt_esp01_gazpar_count_timestamp
    secondary_info: last-changed
  • entity: sensor.mqtt_esp01_gazpar_count_value
  • entity: sensor.mqtt_esp01_gazpar_count_value_m3
  • entity: sensor.mqtt_esp01_gazpar_state_timestamp
  • entity: sensor.mqtt_esp01_gazpar_state_value
  • entity: sensor.mqtt_esp01_gazpar_count_value_kwh

First is "entity: sensor.mqtt_esp01_boottime_longformat" : 1666082857 and i need not a timestamp but HH:mm:SS dd/mm/yyyy

The seconde is "entity: sensor.mqtt_esp01_gazpar_state_value" : 0.00 and i need off/on

Is it possible ?

#

Thank you for your help.