Advertisement
DPYUD

Template per sensore orario Pseudo_Esadecimale

Aug 5th, 2023
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.20 KB | None | 0 0
  1. template:
  2.   - sensor:
  3.     - name: orario1
  4.       state: >
  5.        {% set a=states('input_number.temporaneo_orario')|int %}{% set b=a//16 %}{% set c=b//16 %}{{c//16}}{{c%16}}:{{b%16}}{{a%16}}
  6.        
  7.  
Tags: YAML HA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement