Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [EspHome]: Syntaxfrage text_sensor und logger

    NEWS

    • 15. 05. Wartungsarbeiten am ioBroker Forum

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    [EspHome]: Syntaxfrage text_sensor und logger

    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      WolfgangFB last edited by

      Ich möchte in ESP-Home einen Temperaturwert in ein Text_sensor schreiben.

      Das funktioniert soweit:

        - platform: htu21d
          temperature:
            name: "HTU.temp" 
            filters:
            - offset: -0.3
            id: htu
            on_value:
              then:
              - text_sensor.template.publish:
                  id: LogId
                  state: !lambda return ("HTU " + to_string(x) +  "  " + id(ZeitString).c_str());
      
      

      Jetzt scheitere ich aber an der C++ Syntax um den Wert auf eine Nachkommastelle zu begrenzen. Wie macht man das?

      Zweite Frage: Wie kann ich einzelne Sesoren vom Logger ausnehmen?

      # Enable logging
      logger:
        logs:
          ZeitId: none
      
      

      funktioniert nicht.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post

      Support us

      ioBroker
      Community Adapters
      Donate
      FAQ Cloud / IOT
      HowTo: Node.js-Update
      HowTo: Backup/Restore
      Downloads
      BLOG

      665
      Online

      31.6k
      Users

      79.4k
      Topics

      1.3m
      Posts

      1
      1
      91
      Loading More Posts
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
      The ioBroker Community 2014-2023
      logo