Added option to disable discovery messages after the first execution

This commit is contained in:
hjelev
2023-02-05 15:40:45 +02:00
committed by Masoko
parent 3795b186f4
commit 7676167adc

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.
This is the sensors configuration if ```group_messages = True``` assuming your sensors are separated in ```sensors.yaml``` file.
```yaml{r, attr.source='.numberLines'}
```{r, attr.source='.numberLines'}
- platform: mqtt
name: 'rpi4 cpu load'
state_topic: 'masoko/rpi4'