openmqttgateway / miflora & trastero configuración
This commit is contained in:
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'
|
||||
value_template: "{{ value_json.rssi}}"
|
||||
availability_topic: "home/OpenMQTTGateway/LWT"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
payload_available: "online"
|
||||
payload_not_available: "offline"
|
||||
icon: "mdi:wifi"
|
||||
json_attributes:
|
||||
- version
|
||||
- uptime
|
||||
- freeMem
|
||||
- SSID
|
||||
- modules
|
||||
json_attributes_topic: "home/OpenMQTTGateway/SYStoMQTT"
|
||||
Reference in New Issue
Block a user