psmqtt icon indicating copy to clipboard operation
psmqtt copied to clipboard

Extracting values to HA

Open solarhome opened this issue 2 years ago • 2 comments

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"

solarhome avatar May 01 '22 07:05 solarhome

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

eschava avatar May 02 '22 11:05 eschava