mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-11-07 12:58:44 +00:00
Refactor modules - use folders, add climate
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
# Philips Purifier
|
||||
# https://github.com/xMrVizzy/Philips-AirPurifier
|
||||
fan:
|
||||
platform: philips-airpurifier
|
||||
host: !secret philips_purifier_ip
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
purifier_air_quality:
|
||||
friendly_name: Air quality
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.pm25 }}"
|
||||
icon_template: mdi:weather-windy
|
||||
purifier_humidity:
|
||||
friendly_name: Humidity
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.humidity }}"
|
||||
icon_template: mdi:water
|
||||
purifier_temperature:
|
||||
friendly_name: Temperature
|
||||
unit_of_measurement: "°C"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.temperature }}"
|
||||
icon_template: mdi:thermometer
|
||||
purifier_speed:
|
||||
friendly_name: Speed
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.speed }}"
|
||||
icon_template: mdi:speedometer
|
||||
purifier_allergens:
|
||||
friendly_name: Allergen index
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.allergen_index }}"
|
||||
icon_template: mdi:weather-windy-variant
|
||||
purifier_mode:
|
||||
friendly_name: Mode
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.function }}"
|
||||
purifier_pre_filter:
|
||||
friendly_name: Pre-filter
|
||||
unit_of_measurement: "Hrs"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.pre_filter }}"
|
||||
icon_template: mdi:air-filter
|
||||
purifier_wick_filter:
|
||||
friendly_name: Wick filter
|
||||
unit_of_measurement: "Hrs"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.wick_filter }}"
|
||||
icon_template: mdi:air-filter
|
||||
purifier_carbon_filter:
|
||||
friendly_name: Carbon filter
|
||||
unit_of_measurement: "Hrs"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.carbon_filter }}"
|
||||
icon_template: mdi:air-filter
|
||||
purifier_hepa_filter:
|
||||
friendly_name: HEPA filter
|
||||
unit_of_measurement: "Hrs"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.hepa_filter}}"
|
||||
icon_template: mdi:air-filter
|
||||
purifier_target_humidity:
|
||||
friendly_name: Target humidity
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.target_humidity }}"
|
||||
icon_template: mdi:water
|
||||
purifier_water_level:
|
||||
friendly_name: Water level
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.water_level }}"
|
||||
icon_template: mdi:water-percent
|
||||
purifier_brightness:
|
||||
friendly_name: Brightness
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ states.fan.philips_airpurifier.attributes.light_brightness }}"
|
||||
icon_template: mdi:brightness-6
|
||||
@@ -0,0 +1,66 @@
|
||||
# https://www.home-assistant.io/integrations/weather.darksky
|
||||
weather:
|
||||
- platform: darksky
|
||||
api_key: !secret darksky_key
|
||||
mode: daily
|
||||
|
||||
sensor:
|
||||
- platform: darksky
|
||||
api_key: !secret darksky_key
|
||||
scan_interval: "00:15:00"
|
||||
forecast:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 4
|
||||
- 5
|
||||
- 6
|
||||
monitored_conditions:
|
||||
- summary
|
||||
- minutely_summary
|
||||
- hourly_summary
|
||||
- daily_summary
|
||||
- precip_type
|
||||
- precip_intensity
|
||||
- precip_intensity_max
|
||||
- precip_probability
|
||||
- precip_accumulation
|
||||
- temperature
|
||||
- temperature_high
|
||||
- temperature_low
|
||||
- apparent_temperature
|
||||
- apparent_temperature_high
|
||||
- apparent_temperature_low
|
||||
- wind_speed
|
||||
- wind_gust
|
||||
- wind_bearing
|
||||
- cloud_cover
|
||||
- dew_point
|
||||
- visibility
|
||||
- icon
|
||||
- humidity
|
||||
- pressure
|
||||
- ozone
|
||||
- uv_index
|
||||
- nearest_storm_distance
|
||||
- nearest_storm_bearing
|
||||
- alerts
|
||||
|
||||
#
|
||||
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────
|
||||
#
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.bedroom_weather_power:
|
||||
friendly_name: Bedroom weather battery
|
||||
|
||||
sensor.bedroom_weather_temperature:
|
||||
friendly_name: Bedroom temperature
|
||||
|
||||
sensor.bedroom_weather_pressure:
|
||||
friendly_name: Bedroom pressure
|
||||
|
||||
sensor.bedroom_weather_humidity:
|
||||
friendly_name: Bedroom humidity
|
||||
@@ -0,0 +1,47 @@
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
living_room_right_window_on_off_wrapper:
|
||||
friendly_name: Living room window
|
||||
device_class: window
|
||||
value_template: "{{ is_state('binary_sensor.living_room_right_window_on_off', 'on') }}"
|
||||
entity_id: binary_sensor.living_room_right_window_on_off
|
||||
icon_template: >
|
||||
{% if is_state('binary_sensor.living_room_right_window_on_off', 'on') %} mdi:window-open-variant
|
||||
{% else %} mdi:window-closed-variant
|
||||
{% endif %}
|
||||
|
||||
bedroom_right_window_on_off_wrapper:
|
||||
friendly_name: Bedroom window
|
||||
device_class: window
|
||||
value_template: "{{ is_state('binary_sensor.bedroom_right_window_on_off', 'on') }}"
|
||||
entity_id: binary_sensor.bedroom_right_window_on_off
|
||||
icon_template: >
|
||||
{% if is_state('binary_sensor.bedroom_right_window_on_off', 'on') %} mdi:window-open-variant
|
||||
{% else %} mdi:window-closed-variant
|
||||
{% endif %}
|
||||
|
||||
#
|
||||
# ─── CUSTOMIZATION ──────────────────────────────────────────────────────────────
|
||||
#
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.living_room_right_window_on_off:
|
||||
friendly_name: Living room window sensor
|
||||
|
||||
sensor.living_room_right_window_power:
|
||||
friendly_name: Living room window battery
|
||||
|
||||
binary_sensor.bedroom_right_window_on_off:
|
||||
friendly_name: Bedroom window sensor
|
||||
|
||||
sensor.bedroom_right_window_power:
|
||||
friendly_name: Bedroom window battery
|
||||
|
||||
group:
|
||||
all_windows:
|
||||
name: All windows
|
||||
entities:
|
||||
- binary_sensor.living_room_right_window_on_off
|
||||
- binary_sensor.bedroom_right_window_on_off
|
||||
Reference in New Issue
Block a user