From e35870210d3beb7ccec1cc289a9aa8890650a9f4 Mon Sep 17 00:00:00 2001 From: Hristo Jelev Date: Sun, 3 May 2020 23:13:49 +0300 Subject: [PATCH] sensor formating |float for cpu load --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0617a55..0d9d4b0 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Then install this module needed for the script: $ pip install paho-mqtt ``` -Copy ```rpi-cpu2mqtt.py``` and ```config.py.example``` to a folder of your choise (I am using ```/home/pi/scripts/``` ) and rename ```config.py.example``` to ```config.py``` +Copy ```/src/rpi-cpu2mqtt.py``` and ```/src/config.py.example``` to a folder of your choise (I am using ```/home/pi/scripts/``` ) and rename ```config.py.example``` to ```config.py``` # Configuration @@ -90,7 +90,7 @@ This is the sensors configuration if ```group_messages = True``` assuming your s - platform: mqtt name: 'rpi4 cpu load' state_topic: 'masoko/rpi4' - value_template: '{{ value.split(",")[0] }}' + value_template: '{{ value.split(",")[0] | float}}' unit_of_measurement: "%" - platform: mqtt