Hello - I have a tuya based smart plug which I’ve managed to get onto localtuya. In the states under developer tools, I can see sensor.smartplug_wifi_1_power. It has a value of 36. However, I have tried to make a card with this, and it gives me “Entity not available: sensor.smartplug_wifi_1_energy”
My config yaml:
sensor:
platform: integration
source: sensor.smartplug_wifi_1_power
name: stereo_energy
unit_prefix: k
unit_time: h
round: 2
method: left
I am quite new to this and learning a lot, so if anyone can help, please keep in mind I’m a novice.
I think there’s a lot of confusion about what you’re trying to do in this thread. Your initial post indicated you just wanted to display the value of an entity in a card.
That entity, sensor.smartplug_wifi_1_power, is available.
All you then need is to add a card to your dashboard and then select that entity. As an example, the yaml for a sensor card on the dashboard will be like the below
graph: line
type: sensor
entity: sensor.smartplug_wifi_1_power
detail: 1
I’m not sure why you’re trying to configure things in your config.yaml to display a card. And please, do not use CHATGPT for this type of stuff, read the actual documents first.
Apologies for the confusion. I am trying to find how much an appliance costs to run. To do so, I have a smart plug which I believe I have working in Home Assistant. That’s the outcome, and I hope that is not confusing.
I’m not even sure what you are referring to when you say “read the actual documents first”. As I mentioned, I am new to this. Where are these documents? Presumably they will tell me how to set this up?
Believe me, I find this incredibly frustrating, so I apologise if you too are frustrated by this simple line of questioning. Thank you for your formatting help.