Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

MQTT value math divide by 16

$
0
0

@JoernESP wrote:

Hello,

Iam not able to understand from the Docs, how I can simply convert a value, that I got via MQTT. Goal is only to devide value by 16.
Is it easier maybe via filter?

sensor:
  - platform: mqtt
    name: "TemperaturEG1"
    state_topic: "/home/100/5/status"
    value_template: "{{ (sensor.TemperaturEG1 | float)* 0.0625 }}"

In case of this the value becomes “unknown”. Without the value_template line, it get my normal value of 500.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>