mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
@@ -491,7 +491,7 @@ sensor:
|
||||
- mqtt.publish_json:
|
||||
topic: the/topic
|
||||
payload: |-
|
||||
root["key"] = id(the_sensor).value;
|
||||
root["key"] = id(the_sensor).state;
|
||||
root["greeting"] = "Hello World";
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user