For esphome I agree, but what about when it is a javascript to use on node red? I’m not a programmer so reading the documentation doesn’t always help.
I don’t drink the Node Red Cool-Aid.
And that’s also, why you should not expect getting it right with AI. Because as not programmer, you are not able to correct the code, if AI got it wrong. You simply won’t see the fault.
So, instead of trying to outsource your tasks to untrusted third party (AI), and getting mad afterwards, spend some time learning it yourself. The benefits of that are really great. If something does not work right, you know, where to look at…
4 years ago I did not know anything about linux, yaml and such, and now I’m able to manage a huge HA instance. I’ve learned that, and so can you…
It’s just an example, chatgpt is also very good with lambdas in esphome. I can do some things, but generally the code generated by chatgpt is much better than my IFs else’s.
I try to read a lot, but a lot of programming stuff just doesn’t enter my head.
I managed to do a lot using Arduino IDE and Javascript on Node Red before chatgpt, my first flow on Node Red is very complex and it must have taken a month to finish it, but with Chatgpt it is more efficient.
How is writing code you don’t understand efficient?
What happens when something goes wrong?
If it works without my IFs and else’s, that’s a good way.
Jokes aside, in many codes I would use IFs and else’s, and chatgpt made me a function.
I did a lot of things before chatgpt, so I learned something here and there. But I can’t do a function for example.
If it doesn’t work, look for the error and start again.
I know you don’t approve, like many here, but if I post something made by chatgpt it’s because I tested it before posting. Here is an example:
Personally I feel that tested code should be an exception to the rule and is “ok” (or at least “tolerated”)… But not my rules. And I know a lot of experienced members probably disagree.
I do agree, nothing better than people who know what they’re doing pointing a noob toward the answer, but I feel like it may seem like I’m asking for too much if posting a wall of text and a subject along the lines of “Fix my YAML”
For me the problem is posting without testing, thinking that this will help someone, even if it is with good intentions.
If it works, what difference does it make who wrote the code?
English is not my first language, so I want to warn you that what I’m going to say is not intended to offend anyone here. And I have no idea how many times a post from you, Taras or countless other members has helped me.
But if you think about it, you guys are kind of a chatgpt in human form. Many people don’t understand the code you posted to help with a question.
I’d much rather fix something that a human brain has tried to put together than the hallucinated ramblings of a robot whose inner workings we no longer understand trained off out-of-date and non-working code.
I may have unintentionally kicked the hornets nest with my question, which by no means do I want it to turn into a nasty flame war or a discussion about the merits of human vs AI coding.
The thing is, I’m very pumped with many of the capabilities the ESP microcontrollers and myriad of sensors available. Sometimes I find a Github with exactly what I need, but mostly it is out of date or it is not exactly what I need. I’ve been trying to code for over 25 years, and I’m still unable to get the whole syntax and such through my thick skull. I understand programming in natural language, meaning the idea or the operation behind it, but I just can’t write “Hello World” in any language other than Plain Text.
I had been hearing that AI could help out with coding or even substitute coders, but I’ve just recently found out, as most of you knew long ago, that’s just not the case.
I’d kill for a chatbot that does ESPhome with all the updates and such.
I am not sure how this became a node red forum.
You’re right.
@royeiror
Don’t let this undermine your project, the esphome page is full of examples and there is always someone willing to help.
Looking at the esphome page, the rc522 doesn’t seem to write to the tags.
Oof, seems like my project ended before it truly began, I might have to go through Arduino IDE instead.
Thanks for that valuable bit of information.
I think you’re misunderstanding what @walberjunior meant It’s not a limitation of ESPHome, but rather the device/sensor; it’s a reader only.
The Data Sheet does state writing capabilities.
This document describes the functionality and electrical specifications of the contactless reader/writer MFRC522
That’s a different component from the RC522 mentioned previously. Guessing it doesn’t have write capabilities while the MFRC522 does.
Strange, for Arduino there are examples of clone and read/write, but for Esphome I didn’t even find a request to implement the function
I don’t think so, on the Esphome page itself there is a link to the same datasheet as Royeiror posted
Or am I missing something
No idea, all I know is a simple Google search for RC522 shows a bunch of devices that only advertise reading capability whereas searching for MFRC522 yields devices advertising read/write capabilities. Never used any of them though.