12 рядки
509 B
YAML
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" |