Added option to disable discovery messages after the first execution

This commit is contained in:
hjelev
2023-02-05 15:41:08 +02:00
committed by Masoko
parent 7676167adc
commit acb7b08953

View File

@@ -111,7 +111,7 @@ Once you installed the script on your raspberry you need to create some sensors
If you are using ```discovery_messages```, then this step is not required as a new MQTT device will be automatically created in Home Assistant and all you need to do is add it to a dashboard. If you are using ```discovery_messages```, then this step is not required as a new MQTT device will be automatically created in Home Assistant and all you need to do is add it to a dashboard.
This is the sensors configuration if ```group_messages = True``` assuming your sensors are separated in ```sensors.yaml``` file. This is the sensors configuration if ```group_messages = True``` assuming your sensors are separated in ```sensors.yaml``` file.
```{r, attr.source='.numberLines'} ```yaml
- platform: mqtt - platform: mqtt
name: 'rpi4 cpu load' name: 'rpi4 cpu load'
state_topic: 'masoko/rpi4' state_topic: 'masoko/rpi4'