Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error when no property "topic" is provided #3331

Open
Frantik85 opened this issue Dec 22, 2024 · 0 comments
Open

Syntax error when no property "topic" is provided #3331

Frantik85 opened this issue Dec 22, 2024 · 0 comments
Labels

Comments

@Frantik85
Copy link

Frantik85 commented Dec 22, 2024

The error occures in this line: "- platform: template" with the message "Missing property 'topic'".

I'd like to state, that I'll be happy to fix it, if this is actually a valid false-positive. After searching, I could not find a hint on why to add this there.

heizung_co2_schwellwertberechnung:
  alias: Heizung - CO2-Schwellwertberechnung
  sequence:
  - wait_for_trigger:
    - platform: template
      value_template: '{{(states(''sensor.co2_wohnzimmer'')| float >= states(''input_number.heizung_co2_oberer_schwellwert'')|float)
        or

        (states(''sensor.co2_wohnzimmer'')| float <= states(''input_number.heizung_co2_unterer_schwellwert'')|float)}}'
  - choose:
    - conditions:
      - condition: template
        value_template: '{{(states(''sensor.co2_wohnzimmer'')| float >= states(''input_number.heizung_co2_oberer_schwellwert'')|float)}}'
      sequence:
      - action: input_boolean.turn_on
        target:
          entity_id: input_boolean.heizung_co2_grenzwertstatus_mit_hysterese
        data: {}
    - conditions:
      - condition: template
        value_template: '{{(states(''sensor.co2_wohnzimmer'')| float <= states(''input_number.heizung_co2_unterer_schwellwert'')|float)}}'
      sequence:
      - action: input_boolean.turn_off
        target:
          entity_id: input_boolean.heizung_co2_grenzwertstatus_mit_hysterese
        data: {}
  description: Berechnet den Status für input_boolean.heizung_co2_grenzwertstatus_mit_hysterese
  icon: mdi:molecule-co2

BR,
Daniel

@Frantik85 Frantik85 added the yaml label Dec 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant