I checked both Developer Tools and Entities. There’s no sensor visible in either. It does have the state “on”. I’m using it in a bunch of automations as well. I tried the same with a light for good measure with the same result.
Hello, I have the same problem, can I please ask your help?
I’ve added the following to my configuration.yaml file:
# next lines are for Dyson plug history stats
sensor:
- platform: history_stats
name: "Dyson charge time"
entity_id: switch.plug_dyson_lumi_lumi_plug_maeu01_schakelaar
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
But I cannot get this sensor to appear in dev tools > States or as trigger in an automation.
I don’t have any other sensor: in my configuration.yaml, but I do have:
Every mention of the word sensor in my configuration.yaml file is in the three blocks in my previous post. I decided to remove the second and third block, letting the first block be the only mention of sensor. Then the sensor finally appeared in dev tools > status. I don’t know why.
I then pasted blocks two and three back to the exact same place where they were before and reloaded the yaml. It kept working since, which is even weirder.