I have a garage gate switch, and two zigbee contact sensors sticked on my garage gate.
Been trying to wrap my head around this sensor and garage cover. Read and reread all the posts on this topic.
Not really good in yaml, so i tried my luck with ChatGPT
OK thanks for the answer, i didn’t know that AI wasn’t allowed.
So how can i create this sensor without any yaml knowledge? Been struggling with this for the last 6 months, reading all the posts, and trying different code variations… This one seems closest to the final code than ever
I agree that AI answers aren’t often helpful, and don’t belong here as responses to posts. But in this case, the (presumably human) poster just has some partially-working YAML and is looking for help fine-tuning it. To me, it doesn’t really matter where that code was copied and pasted from, be it an AI bot or just some example they found somewhere.
In fact, I personally would have no problem with the OP re-posting the exact same question, without mentioning where the failing code came from.
The problem with that is that GPT often hallucinates things that look reasonable that a human would never make up. Like this:
That one was easy to spot, others less so. Takes longer to “fine-tune” the idiot robot sick than to write from scratch. Look at that garbage about setting various states on a binary sensor.
Yes, these are the top and bottom zigbee contact sensors. Idealy, i woukd like it to display 5 states (closed, open, opening, closing, jammed), but what i have now is 4 states, which is fine! (open,closed,moving,jammed).
The problem is that the state displays it is always open, andbthe icons are not changing. If it is always open, then the “close” arrow is visible only. The “open” arrow is grayed out.
i want to have a garage cover template, that woukd display 5 states (opening, closing,open,closed,jammed), to have three separate buttons (it kinda works - mushroom cover card shows me those), ant to have the icons change based on state.