Skip to content

Instantly share code, notes, and snippets.

@MoritzBuetzer
Created April 27, 2023 08:24
Show Gist options
  • Save MoritzBuetzer/16feb595745198a87308161ae4942226 to your computer and use it in GitHub Desktop.
Save MoritzBuetzer/16feb595745198a87308161ae4942226 to your computer and use it in GitHub Desktop.
Home Assistant sensor to get co2value from CONNY - https://co2ampel.online/
sensor:
- platform: tcp
host: <CONNY_IP>
port: 4000
payload: "{'cmd':'GET_VALUE'}"
name: "CO2 Ampel"
- platform: template
sensors:
co2_value:
friendly_name: "CO2 Wert"
value_template: "{{ (states('sensor.co2_ampel') | from_json).RESULT.co2Value }}"
unit_of_measurement: ppm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment