home-automation-home-assistant/sensors/mqtt.yaml

12 regels
509 B
YAML

2019-01-16 12:47:15 +00:00
- platform: mqtt
name: "mobile_fb_battery"
state_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
unit_of_measurement: '%'
value_template: "{{ value_json.level }}"
2019-03-18 19:07:08 +00:00
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
2019-01-16 12:47:15 +00:00
- platform: mqtt
name: "mobile_fb_callstate"
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
value_template: "{{ value_json.state }}"
2019-10-13 09:25:04 +00:00
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"