openmqttgateway / miflora & trastero configuración
This commit is contained in:
@@ -17,3 +17,19 @@ homeassistant:
|
|||||||
group: !include groups.yaml
|
group: !include groups.yaml
|
||||||
automation: !include_dir_merge_list automation
|
automation: !include_dir_merge_list automation
|
||||||
script: !include scripts.yaml
|
script: !include scripts.yaml
|
||||||
|
|
||||||
|
plant:
|
||||||
|
salon:
|
||||||
|
sensors:
|
||||||
|
moisture: sensor.plantas_salon_humedad
|
||||||
|
temperature: sensor.plantas_salon_temperatura
|
||||||
|
conductivity: sensor.plantas_salon_fertilizante
|
||||||
|
brightness: sensor.plantas_salon_luz
|
||||||
|
min_moisture: 15
|
||||||
|
max_moisture: 60
|
||||||
|
min_conductivity: 450
|
||||||
|
max_conductivity: 2000
|
||||||
|
min_temperature: 10
|
||||||
|
max_temperature: 32
|
||||||
|
min_brightness: 1500
|
||||||
|
max_brightness: 6000
|
||||||
|
|||||||
5
packages/input_boolean/aviso_trastero_berni.yaml
Normal file
5
packages/input_boolean/aviso_trastero_berni.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
input_boolean:
|
||||||
|
aviso_trastero_berni:
|
||||||
|
name: Aviso Trastero Berni
|
||||||
|
initial: on
|
||||||
|
icon: mdi:alarm-bell
|
||||||
5
packages/input_boolean/aviso_trastero_diego.yaml
Normal file
5
packages/input_boolean/aviso_trastero_diego.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
input_boolean:
|
||||||
|
aviso_trastero_diego:
|
||||||
|
name: Aviso Trastero Diego
|
||||||
|
initial: on
|
||||||
|
icon: mdi:alarm-bell
|
||||||
11
packages/plant/miflora.yaml_disable
Normal file
11
packages/plant/miflora.yaml_disable
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
plant:
|
||||||
|
salon:
|
||||||
|
sensors:
|
||||||
|
moisture: sensor.plantas_salon_humedad
|
||||||
|
temperature: sensor.plantas_salon_temperatura
|
||||||
|
conductivity: sensor.plantas_salon_fertilizante
|
||||||
|
brightness: sensor.plantas_salon_luz
|
||||||
|
min_moisture: 20
|
||||||
|
max_moisture: 80
|
||||||
|
min_conductivity: 450
|
||||||
|
min_temperature: 20
|
||||||
36
packages/sensor/miflora.yaml
Normal file
36
packages/sensor/miflora.yaml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: mqtt
|
||||||
|
name: plantas_salon_temperatura
|
||||||
|
unit_of_measurement: "°C"
|
||||||
|
force_update: true
|
||||||
|
expire_after: 21600 # 6 hours
|
||||||
|
state_topic: "home/OpenMQTTGateway/BTtoMQTT/C47C8D675AAC"
|
||||||
|
value_template: '{% if value_json.tem %} {{ value_json.tem }} {% else %} {{ state.state }} {% endif %}'
|
||||||
|
- platform: mqtt
|
||||||
|
name: plantas_salon_bateria
|
||||||
|
unit_of_measurement: '%'
|
||||||
|
force_update: true
|
||||||
|
expire_after: 21600 # 6 hours
|
||||||
|
state_topic: "home/OpenMQTTGateway/BTtoMQTT/C47C8D675AAC"
|
||||||
|
value_template: '{% if value_json.bat %} {{ value_json.bat }} {% else %} {{ state.state }} {% endif %}'
|
||||||
|
- platform: mqtt
|
||||||
|
name: plantas_salon_humedad
|
||||||
|
unit_of_measurement: '%'
|
||||||
|
force_update: true
|
||||||
|
expire_after: 21600 # 6 hours
|
||||||
|
state_topic: "home/OpenMQTTGateway/BTtoMQTT/C47C8D675AAC"
|
||||||
|
value_template: '{% if value_json.moi %} {{ value_json.moi }} {% else %} {{ state.state }} {% endif %}'
|
||||||
|
- platform: mqtt
|
||||||
|
name: plantas_salon_luz
|
||||||
|
unit_of_measurement: lux
|
||||||
|
force_update: true
|
||||||
|
expire_after: 21600 # 6 hours
|
||||||
|
state_topic: "home/OpenMQTTGateway/BTtoMQTT/C47C8D675AAC"
|
||||||
|
value_template: '{% if value_json.lux %} {{ value_json.lux }} {% else %} {{ state.state }} {% endif %}'
|
||||||
|
- platform: mqtt
|
||||||
|
name: plantas_salon_fertilizante
|
||||||
|
unit_of_measurement: 'µS/cm'
|
||||||
|
force_update: true
|
||||||
|
expire_after: 21600 # 6 hours
|
||||||
|
state_topic: "home/OpenMQTTGateway/BTtoMQTT/C47C8D675AAC"
|
||||||
|
value_template: '{% if value_json.fer %} {{ value_json.fer }} {% else %} {{ state.state }} {% endif %}'
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
sensor:
|
|
||||||
- platform: miflora
|
|
||||||
mac: 'C4:7C:8D:67:5A:AC'
|
|
||||||
name: Plantas
|
|
||||||
force_update: true
|
|
||||||
median: 3
|
|
||||||
monitored_conditions:
|
|
||||||
- moisture
|
|
||||||
- light
|
|
||||||
- temperature
|
|
||||||
- conductivity
|
|
||||||
- battery
|
|
||||||
11
packages/sensor/openmqttgatewaylora.yaml
Normal file
11
packages/sensor/openmqttgatewaylora.yaml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
sensor:
|
||||||
|
- platform: mqtt
|
||||||
|
name: "OpenGateway LORA"
|
||||||
|
state_topic: "home/OpenMQTTGateway/SYStoMQTT"
|
||||||
|
unit_of_measurement: 'dB'
|
||||||
|
value_template: "{{ value_json.rssi}}"
|
||||||
|
availability_topic: "home/OpenMQTTGateway/LWT"
|
||||||
|
payload_available: "online"
|
||||||
|
payload_not_available: "offline"
|
||||||
|
icon: "mdi:wifi"
|
||||||
|
json_attributes_topic: "home/OpenMQTTGateway/LORAtoMQTT"
|
||||||
@@ -5,12 +5,7 @@ sensor:
|
|||||||
unit_of_measurement: 'dB'
|
unit_of_measurement: 'dB'
|
||||||
value_template: "{{ value_json.rssi}}"
|
value_template: "{{ value_json.rssi}}"
|
||||||
availability_topic: "home/OpenMQTTGateway/LWT"
|
availability_topic: "home/OpenMQTTGateway/LWT"
|
||||||
payload_available: "Online"
|
payload_available: "online"
|
||||||
payload_not_available: "Offline"
|
payload_not_available: "offline"
|
||||||
icon: "mdi:wifi"
|
icon: "mdi:wifi"
|
||||||
json_attributes:
|
json_attributes_topic: "home/OpenMQTTGateway/SYStoMQTT"
|
||||||
- version
|
|
||||||
- uptime
|
|
||||||
- freeMem
|
|
||||||
- SSID
|
|
||||||
- modules
|
|
||||||
Reference in New Issue
Block a user