diff --git a/roles/automations/files/ikea-vindstyrka.yaml b/roles/automations/files/ikea-vindstyrka.yaml new file mode 100644 index 0000000..cff7427 --- /dev/null +++ b/roles/automations/files/ikea-vindstyrka.yaml @@ -0,0 +1,16 @@ +- id: ikea_tvoc + alias: '[IKEA] TVOC read' + trigger: + - platform: time_pattern + seconds: "0" + minutes: "/1" + condition: [ ] + action: + - service: zha_toolkit.attr_read + data: + ieee: bc28ecf4ea0c94d7463945442c9b5e46 + endpoint: 1 + cluster: 64638 + attribute: 0 + manf: 4476 + state_id: sensor.ikea_of_sweden_vindstyrka_tvoc diff --git a/roles/config/files/configuration.yaml b/roles/config/files/configuration.yaml index f87ed3b..698983a 100644 --- a/roles/config/files/configuration.yaml +++ b/roles/config/files/configuration.yaml @@ -341,6 +341,14 @@ sensor: unit_prefix: k unit_time: h source: sensor.computer_outlet_electrical_measurement + # template for the IKEA TVOC + - platform: template + sensors: + ikea_of_sweden_vindstyrka_tvoc: + friendly_name: "IKEA of Sweden VINDSTYRKA TVOC" + unit_of_measurement: "TVOC index" + icon_template: mdi:weather-dust + value_template: "" # # Powercalc # - platform: powercalc # create_group: Kitchen lights @@ -413,3 +421,5 @@ plant: battery: sensor.coffee_plant_sensor_battery min_moisture: 30 max_moisture: 50 + +zha_toolkit: