Add openmqttgateway
sensor & binary_sensor
This commit is contained in:
7
packages/binary_sensor/openmqttgateway.yaml
Normal file
7
packages/binary_sensor/openmqttgateway.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "OpenMQTTGateway"
|
||||
state_topic: "home/OpenMQTTGateway/LWT"
|
||||
payload_on: "Online"
|
||||
payload_off: "Offline"
|
||||
device_class: "connectivity"
|
||||
16
packages/sensor/openmqttgateway.yaml
Normal file
16
packages/sensor/openmqttgateway.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
name: "Wifi OpenGateway ESP32"
|
||||
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:
|
||||
- version
|
||||
- uptime
|
||||
- freeMem
|
||||
- SSID
|
||||
- modules
|
||||
Reference in New Issue
Block a user