Skip to content

Instantly share code, notes, and snippets.

@maruel
Created August 6, 2024 15:54
Show Gist options
  • Save maruel/15be229f43aec716032ebb48429f6fb8 to your computer and use it in GitHub Desktop.
Save maruel/15be229f43aec716032ebb48429f6fb8 to your computer and use it in GitHub Desktop.
- id: '123'
alias: 'Salle chauffage: Exhaust on'
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.x1c_vitesse_du_ventilateur_de_refroidissement
above: 0
- platform: numeric_state
entity_id:
- sensor.x1c_vitesse_du_ventilateur_de_la_chambre
above: 20
condition:
- condition: not
conditions:
- condition: state
entity_id: sensor.x1c_00m00a282504424_emplacement_actif
attribute: type
state: ASA
action:
- type: turn_on
device_id: 2f5ccf57232487c940cef088cca60c2c
entity_id: 6df1feaebec1a1d5b910096ad5968934
domain: fan
mode: single
- id: '124'
alias: 'Salle chauffage: Exhaust off'
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.x1c_vitesse_du_ventilateur_de_refroidissement
below: 1
- platform: numeric_state
entity_id:
- sensor.x1c_vitesse_du_ventilateur_de_la_chambre
below: 20
- platform: state
entity_id:
- sensor.x1c_00m00a282504424_emplacement_actif
attribute: type
to: ASA
condition:
- condition: numeric_state
entity_id: sensor.x1c_vitesse_du_ventilateur_de_refroidissement
below: 1
- condition: numeric_state
entity_id: sensor.x1c_vitesse_du_ventilateur_de_la_chambre
below: 20
action:
- type: turn_off
device_id: 2f5ccf57232487c940cef088cca60c2c
entity_id: 6df1feaebec1a1d5b910096ad5968934
domain: fan
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment