Created
April 27, 2023 08:24
-
-
Save MoritzBuetzer/16feb595745198a87308161ae4942226 to your computer and use it in GitHub Desktop.
Home Assistant sensor to get co2value from CONNY - https://co2ampel.online/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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