home-automation-home-assistant/sensors/mqtt.yaml
Florian Brinker 2e501bc322 update
2019-10-13 11:25:04 +02:00

12 خطوط
509 B
YAML

- platform: mqtt
name: "mobile_fb_battery"
state_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
unit_of_measurement: '%'
value_template: "{{ value_json.level }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_battery/state"
- platform: mqtt
name: "mobile_fb_callstate"
state_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"
value_template: "{{ value_json.state }}"
json_attributes_topic: "homeassistant/sensor/android_mobile_fb_callstate/state"