-
Notifications
You must be signed in to change notification settings - Fork 5
Configuration examples
FHA edited this page Apr 9, 2018
·
6 revisions
Please note that it is safer to put all address between double-quote to avoid problem with numerical only device addresses.
sensor:
- platform: zigate
name: 'LivingRoom Sensor'
address: "a1b201"
default_state: temperature
default_unit: '°C'
- platform: template
sensors:
pressure1:
friendly_name: 'LivingRoom Atmospheric Pressure'
unit_of_measurement: 'mb'
value_template: '{{ states.sensor.livingroom_sensor.attributes.pressure }}'
switch:
- platform: zigate
name: 'presence_sensor'
address: "aaaa01"
default_state: 'event'
type: 'momentary'
Example automation for detection
- action:
- data:
message: automation title
service: notify.notify
alias: automation alias
condition: []
id: 'xxxxxx'
trigger:
- entity_id: switch.presence_sensor
from: 'off'
platform: state
to: 'on'
switch:
- platform: zigate
name: 'Main Door'
address: "bbbb01"
default_state: 'state'
inverted: 'yes'
switch:
- platform: zigate
name: 'Switch01'
address: "b01701"
switch:
- platform: zigate
name: 'Switch01'
address: "f5c901"
autotoggle_delay: 2
default_state: 'state'
type: 'toggle'
light:
- platform: zigate
name: 'Light'
address: "6e8e01"
light_type: 'dual-white'
default_state: 'event'
switch:
- platform: zigate
name: 'Switch01'
address: "b01701"
related automation
action:
- service: switch.toggle
entity_id: switch.Switch01