-
Notifications
You must be signed in to change notification settings - Fork 0
/
sensors.yaml
36 lines (32 loc) · 1.21 KB
/
sensors.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- platform: time_date
display_options:
- 'time'
- platform: uber
server_token: !secret server_token
start_latitude: !secret home_latitude
start_longitude: !secret home_longitude
product_ids:
- 'f2ea021d-af59-4511-8dca-1c4a6cfc8f9b'
- platform: dnsip
- platform: dnsip
hostname: dupras.fr
- platform: template
sensors:
temp_moy_salon:
friendly_name: Temperature moyenne
entity_id:
- sensor.netatmo_salon_temperature
- sensor.netatmo_salon_temperature
unit_of_measurement: '°C'
value_template: '{% if states.sensor.netatmo_salon_temperature.state and states.sensor.netatmo_salon_temperature.state != "unknown" %}
{{ (((states.climate.salon.attributes.current_temperature | float) +
(states.sensor.netatmo_salon_temperature.state | float)) / 2)|round(1) }}
{%else%}
{{ states.climate.salon.attributes.current_temperature}}
{%endif%}'
status_machine_laver:
friendly_name: Status Machine à laver
value_template: '{{ states.switch.machine_a_laver.attributes.state_detail }}'
- platform: linky
username: !secret linky_username
password: !secret linky_password