eschava / psmqtt

Utility reporting system health and status via MQTT
MIT License
158 stars 35 forks source link

Extracting values to HA #27

Open solarhome opened 2 years ago

solarhome commented 2 years ago

Temp sensor in HA gives "unknown"

image

And MQTT Explorer gives

image

ASUS_CPU sensor is working but that ASUS_TEMP is not working? What should I do? What am I missing there?

  - platform: mqtt
    name: "ASUS_CPU"
    state_topic: "psmqtt/cpu_percent"

  - platform: mqtt
    name: "ASUS_TEMP"
    state_topic: "psmqtt/sensors_temperatures"
    value_template: "{{ value_json.asus }}"
    json_attributes_topic: "psmqtt/sensors_temperatures"
eschava commented 2 years ago

You can try value_template: "{{ value_json.asus[0] }}" because that value is an array

f18m commented 4 months ago

I guess this ticket can be closed right @solarhome ?