Hey everyone, I’m trying to automate reading the power consumption from my smart plug and store it in a system variable. I want to use this data to track my energy usage over time. The REST API endpoint for my plug is http://[IP]/report and it returns a JSON with the current power consumption, relay status, and temperature. I need to extract the ‘power’ value and store it in a variable that I can display in Home Assistant. I’ve never written a script for this before, so I’m not sure about the syntax or how to create the variable. Any advice or examples would be really helpful! Thanks in advance! ![]()