mysensors.yaml 1.65 KB
Newer Older
Rob Connolly's avatar
Rob Connolly committed
1
2
3
---
mysensors:
  gateways:
Rob Connolly's avatar
Rob Connolly committed
4
    - device: mqtt
Rob Connolly's avatar
Rob Connolly committed
5
      persistence_file: '/config/mysensors.json'
Rob Connolly's avatar
Rob Connolly committed
6
7
      topic_in_prefix: 'mysensors/out'
      topic_out_prefix: 'mysensors/in'
Rob Connolly's avatar
Rob Connolly committed
8
9
10
11
  debug: true
  persistence: true
  version: '2.3'
  optimistic: false
12
13
14
15
16
17
18
19

input_boolean:
  greenhouse_active:
    name: "Greenhouse In Use"
    icon: mdi:sprout

automation:
  - alias: "Greenhouse High Temperature Notification"
20
    id: greenhouse_high_notify
21
22
    trigger:
      platform: numeric_state
Rob Connolly's avatar
Rob Connolly committed
23
      entity_id: sensor.temperatureandhumidity_3_1
24
25
26
27
28
29
30
31
32
33
34
      above: 27
      for:
        minutes: 30
    condition:
      condition: state
      entity_id: input_boolean.greenhouse_active
      state: 'on'
    action:
      service: notify.family
      data_template:
        title: "Greenhouse Temperature High!"
Rob Connolly's avatar
Rob Connolly committed
35
        message: "The greenhouse temperature is {{ states.sensor.temperatureandhumidity_3_1.state }}{{ states.sensor.temperatureandhumidity_3_1.attributes.unit_of_measurement }}. You may wish to open the door and check if the plants need watering."
36

37
  - alias: "Greenhouse Low Temperature Notification"
38
    id: greenhouse_low_notification
39
40
    trigger:
      platform: numeric_state
Rob Connolly's avatar
Rob Connolly committed
41
      entity_id: sensor.temperatureandhumidity_3_1
42
43
44
45
46
47
48
49
50
51
52
      below: 11
      for:
        minutes: 30
    condition:
      condition: state
      entity_id: input_boolean.greenhouse_active
      state: 'on'
    action:
      service: notify.family
      data_template:
        title: "Greenhouse Temperature Low!"
Rob Connolly's avatar
Rob Connolly committed
53
        message: "The greenhouse temperature is {{ states.sensor.temperatureandhumidity_3_1.state }}{{ states.sensor.temperatureandhumidity_3_1.attributes.unit_of_measurement }}. You may wish to close the door."