We save heating. Window detection mode.

alias: ‘Bedroom: Window open’
description: Turn off heating in the room
trigger:
- type: opened
platform: device
device_id: 157a36b19a0e9dbe6948ff1a8ae0f928
entity_id: binary_sensor.0x00158d0001120236_contact
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- type: opened
platform: device
device_id: 69c7e90c03d9f9f787990f90fd37f644
entity_id: binary_sensor.0x00158d0001120219_contact
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
condition: []
action:
- type: turn_on
device_id: cc1c565c549d74937d6ad0e3a250f34d
entity_id: switch.0x842e14fffee5564b_window_detection
domain: switch
mode: single

alias: ‘Bedroom: Window close’
description: Turn on heating in the room
trigger:
- type: not_opened
platform: device
device_id: 0dbd0d1b6b1ce2425fb2d2cd03ca5ae6
entity_id: binary_sensor.0x00158d00010df4fa_contact
domain: binary_sensor
- type: not_opened
platform: device
device_id: 69c7e90c03d9f9f787990f90fd37f644
entity_id: binary_sensor.0x00158d0001120219_contact
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
condition:
- condition: and
conditions:
- type: is_not_open
condition: device
device_id: 157a36b19a0e9dbe6948ff1a8ae0f928
entity_id: binary_sensor.0x00158d0001120236_contact
domain: binary_sensor
- type: is_not_open
condition: device
device_id: 69c7e90c03d9f9f787990f90fd37f644
entity_id: binary_sensor.0x00158d0001120219_contact
domain: binary_sensor
action:
- type: turn_off
device_id: cc1c565c549d74937d6ad0e3a250f34d
entity_id: switch.0x842e14fffee5564b_window_detection
domain: switch
mode: single

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Igor Mullin

Igor Mullin

I´m a Hardware and Software Engineer and a PhD. In my professional activity I focus on such things like smart home systems and electric development.