Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with "value_json.temperature-celsius" #10

Open
pitoganzado opened this issue May 28, 2021 · 1 comment
Open

Issues with "value_json.temperature-celsius" #10

pitoganzado opened this issue May 28, 2021 · 1 comment

Comments

@pitoganzado
Copy link

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"

@deepcoder
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants