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

Update MQTT topic based on a sensor value

$
0
0

Hi,

I have connected HA to my MQTT broker. Connection works. As I want to use some information on another system, I want to write data from a HA sensor to the MQTT broker.

I have a sensor called

sensor.blitzortung_lightning_counter

which can assume a number of 0 and above. Now whenever it changes, I would like to write it into the MQTT topic

HA/lightning_counter

Is there any code which I can put into the configuration.yaml to do this? Can you help me with this? :slight_smile:

Johannes

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105941

Trending Articles



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