0

My goal is move my C++ scripts to yaml and use esphome. I´ve started with something easy, esp8266+dht22+mqtt, really easy, but if i want to add also the timestamp in addition to temperature and humidity. I guess to use lambda?, text_sensor?. Any help will be appreciated.

This is my code:


sensor:
  - platform: dht
    pin: D5
    model: AM2302
    temperature:
      name: "temperature_test"
      filters:
        - multiply: 0.92
    humidity:
      name: "humidity_test"
      id: tempdht22
    update_interval: 10s

mqtt:
  #discovery_prefix: esphome_test
  broker: 192.168.1.185
  id: mqtt_client

0 Answers0