Philips Airpurifier - SOLVED

Hey guys.

Now the Philips Airpurifier from Kraineff i marked as Archived and no longer maintained by him so I need som help from someone that has some codingskills.

The only problem with this integration is the Template variable varning that came with HA 20221.4.

Could someone help me with this so I can continue to use this component.

Thanks.

Found the solution with a friend.
https://www.home-assistant.io/docs/configuration/templating/#states

  - platform: template
    sensors:
      purifier_air_quality:
        friendly_name: "Air quality"
        value_template: "{{ state_attr('fan.philips_airpurifier', 'pm25') }}"
      purifier_speed:
        friendly_name: "Speed"
        value_template: "{{ state_attr('fan.philips_airpurifier', 'speed') }}"
      purifier_allergens:
        friendly_name: "Allergen index"
        value_template: "{{ state_attr('fan.philips_airpurifier', 'allergen_index') }}"
      purifier_pre_filter:
        friendly_name: "Pre-filter"
        unit_of_measurement: 'Hrs'
        value_template: "{{ state_attr('fan.philips_airpurifier', 'pre_filter') }}"
      purifier_carbon_filter:
        friendly_name: "Carbon-filter"
        unit_of_measurement: 'Hrs'
        value_template: "{{ state_attr('fan.philips_airpurifier', 'carbon_filter') }}"
      purifier_hepa_filter:
        friendly_name: "HEPA-filter"
        unit_of_measurement: 'Hrs'
        value_template: "{{ state_attr('fan.philips_airpurifier', 'hepa_filter') }}"
      purifier_brightness:
        friendly_name: "Brightness"
        unit_of_measurement: '%'
        value_template: "{{ state_attr('fan.philips_airpurifier', 'light_brightness') }}"
      purifier_child_lock:
        friendly_name: "Child lock"
        value_template: "{{ state_attr('fan.philips_airpurifier', 'child_lock') }}"
1 Like