Philips-Airpurifier
For my Philips Airpurifier AC3259/10 - Original from https://github.com/Kraineff/philips-airpurifier
I will try to keep this code Up-To-Date and fix whatever warnings and errors that I get from HA.
Installation:
Take the folder "philips_airpurifier" and place it in folder "custom_components". Restart. Then copy the yaml down below and place it in configuration.yaml, save and restart. (Remember to change the ip-address to your Philips IP address). Restart. Finished.
If you like to have som extra sensors, for example like me to get an notification when its time to change filters. Check sensors-section down below.
Usage:
fan:
platform: philips_airpurifier
host: 192.168.0.17
Configuration variables:
Field | Value | Necessity | Description |
---|---|---|---|
platform | philips_airpurifier |
Required | The platform name. |
host | 192.168.0.17 | Required | IP address of your Purifier. |
name | Philips Air Purifier | Optional | Name of the Fan. |
Services
The philips_airpurifier
integration provides the following custom services:
philips_airpurifier.set_mode
Set the device mode (if supported)
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set mode |
mode | "Auto Mode" |
Required | One of "Auto Mode", "Allergen Mode", "Sleep Mode", "Bacteria", "Night". |
philips_airpurifier.set_function
Set the device function (if supported)
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set function |
function | "Purification & Humidification" |
Required | One of "Purification" or "Purification & Humidification". |
philips_airpurifier.set_target_humidity
Set the device target humidity (if supported)
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set target humidity |
humidity | 40 |
Required | One of 40, 50, 60 |
philips_airpurifier.set_light_brightness
Set the device light brightness
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set light brightness |
level | 50 |
Required | One of 0, 25, 50, 75, 100. Turns off the display light if level is 0. |
philips_airpurifier.set_child_lock
Set the device child lock on or off
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set child lock |
lock | true |
Required | true or false |
philips_airpurifier.set_timer
Set the device off time
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set off timer |
hours | 5 |
Required | Hours between 0 and 12 |
philips_airpurifier.set_display_light
Set the device display light on or off
Field | Value | Necessity | Description |
---|---|---|---|
entity_id | "fan.living_room" |
Required | Name(s) of the entities to set display light |
light | true |
Required | true or false |
Create sensors from fan.philips_airpurifier: (copy and paste to sensors.yaml in config folder)
- 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') }}"