Advertisement
314ma

input_number_offset

Jan 27th, 2023
839
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.49 KB | None | 0 0
  1. ### SKRYPT ###
  2.  
  3. alias: input_number_offset
  4. sequence:
  5.   - service: input_number.set_value
  6.     data:
  7.       entity_id: "{{ entity_id }}"
  8.       value: "{{ states[entity_id] | float(0) + value | float(0) }}"
  9.  
  10.  
  11.  
  12. ### KARTA ###
  13.  
  14.       - show_name: true
  15.         show_icon: true
  16.         type: button
  17.         tap_action:
  18.           action: call-service
  19.           service: script.input_number_offset
  20.           data:
  21.             entity_id: input_number.inserted_coal_weight
  22.             value: 25
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement