Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95294

Error rendering template: UndefinedError: 'value_json' is undefined

$
0
0

@pfertig wrote:

I’m attempting to use this sensor

  - platform: mqtt
    name: "washer_watts"
    state_topic: "tele/SNF-Washer/SENSOR"
#    value_template: "{{value_json.energy['Power']}}"
    qos: 2
    unit_of_measurement : "W"
    icon: mdi:flash-circle
    availability_topic: "tele/SNF-Washer/LWT"
    payload_available: "Online"
    payload_not_available: "Offline"

so that I can see how many watts are being used - to base n automation that will tell me when my washing machine has finished.
I get told that the sensor is unavailable, and in the template editor I get this error

Error rendering template: UndefinedError: ‘value_json’ is undefined

I’m probably muissing something really obvioius and or simpl but I’ve spent days pulliing my hair out over this. can’t get it to to work. Other than the above error I see none anywhere else.

Help Please.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95294

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>