bluetooth-temperature-sensors icon indicating copy to clipboard operation
bluetooth-temperature-sensors copied to clipboard

Issues with "value_json.temperature-celsius"

Open pitoganzado opened this issue 3 years ago • 1 comments

Hi to all, I'm getting "unknown" state in this particular values, Any tip? Thanks!

  • platform: mqtt name: "Cozinha Temperatura" state_topic: "homeassistant/sensor/ble-temp/XX.XX.XX.XX.XX.XX" value_template: "{{ value_json.temperature-celsius }}" unit_of_measurement: "°C" json_attributes_topic: "homeassistant/sensor/ble-temp/XX.XX.XX.XX.XX.XX"

  • platform: mqtt name: "Cozinha Temp Bateria " state_topic: "homeassistant/sensor/ble-temp/XX.XX.XX.XX.XX.XX" value_template: "{{ value_json.battery-pct }}" unit_of_measurement: "%" json_attributes_topic: "homeassistant/sensor/ble-temp/XX.XX.XX.XX.XX.XX"

pitoganzado avatar May 28 '21 05:05 pitoganzado

Apologies for not replying. I have not been able to work on this for a while. Hoping you found a solution. I use MQTT Explorer : http://mqtt-explorer.com/

to look at the MQTT values published by the app. This will give you an idea if the app is publishing any values from the BLE sensor, if not then problem is most likely with the app and it's communication with the BLE sensor. If you are seeing MQTT messages with the MQTT Explorer app, the look to a problem with Home Assistant decoding the JSON data correctly.

deepcoder avatar Aug 20 '21 18:08 deepcoder