Skip to content

How to set smaller units than minutes or liters #139

Answered by petergridge
malocycling asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The system by default operates in minutes, the easiest way to make it operate as seconds would be to apply an adjustment factor of 0.0167 i.e. a 1/60 so each minute will be treated as a second. Or if you are using volume, a factor of .001 to convert to ml.

You can use a variation of the following to create a template sensor to support this.

template:
  - sensor:
    - name: Adjustment
      state: "{{ states('input_number.adjustment') }}"
      icon: mdi:knob
input_number:
  adjustment:
    step: .0001
    default: .0167
    icon: mdi:knob

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@malocycling
Comment options

Answer selected by malocycling
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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