Ankündigung

Einklappen
Keine Ankündigung bisher.

Wer nutzt denn eigentlich alles Home Assistant?

Einklappen
Dieses Thema ist geschlossen.
X
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Hallo,

    mit einem Template kein Problem.

    Code:
    sensor:
      - platform: template
        sensors:
          neuer_name:
            value_template: "{{ states('sensor.sensor_der_negativ_ist') | float | abs }}"​
    Sollte bei dir dann so ausschaun:
    Code:
    sensor:
      - platform: template
        sensors:
          bkw_incoming_positiv:
            value_template: "{{ states('sensor.bkw_incoming') | float | abs }}"​​
    Gruß Danny
    Zuletzt geändert von danny; 16.08.2024, 13:52. Grund: Beispiel erweitert.

    Kommentar


      danny

      sorry wenn ich frage aber in welche Datei muss dies dann?
      Wenn dies Mist ist bitte sagen, dann passe ich dies an

      ich habe folgende files
      Code:
      homeassistant:
        customize: !include customize.yaml
        
      # Loads default set of integrations. Do not remove.
      default_config:
      
      # Load frontend themes from the themes folder
      frontend:
        themes: !include_dir_merge_named themes
      
      automation: !include automations.yaml
      script: !include scripts.yaml
      scene: !include scenes.yaml
      knx: !include knx.yaml
      ​
      customize.yaml
      Code:
      # IR Stromzähler
      sensor.tasmota_dws7612_energy:
        state_class: total_increasing
        device_class: energy
        unit_of_measurement: kWh
            
      sensor.tasmota_dws7612_power:
        state_class: measurement
        device_class: energy
        unit_of_measurement: Wh
      
      
      sensor.bkw_incoming:
        state_class: measurement
        device_class: energy
        unit_of_measurement: Wh
       
       
        ​

      Kommentar


        Probiere es mal so:

        Code:
        homeassistant:
        customize: !include customize.yaml
        
        # Loads default set of integrations. Do not remove.
        default_config:
        
        # Load frontend themes from the themes folder
        frontend:
        themes: !include_dir_merge_named themes
        
        automation: !include automations.yaml
        script: !include scripts.yaml
        scene: !include scenes.yaml
        knx: !include knx.yaml
        template: !include templates.yaml​

        templates.yaml <----Datei neu erstellen und füllen mit

        Code:
        sensor:
          - bkw_incoming_positiv:
            value_template: "{{ states('sensor.bkw_incoming') | float | abs }}"​​​
        Danach neu starten und dann sollte es schon gehen.

        Kommentar


          Weiß nicht ob sich das hier rumgesprochen hat, aber es gibt nun ein eigenes HA-Unterforum hier:

          https://knx-user-forum.de/forum/proj...home-assistant

          Kommentar


            Genau. Dort geht es jetzt weiter…
            Gruß Matthias
            EIB übersetzt meine Frau mit "Ehepaar Ist Beschäftigt"
            - PN nur für PERSÖNLICHES!

            Kommentar

            Lädt...
            X