Attempting to create a simply App for Anthem MDX Amplifier using Chat-GPT (I have no idea what I'm doing!)

I have been trying to use Chat GPT to create a very simple app which could be used to add a device for an Anthem MDX multichannel amp. I have got to point where I have an installable app which I’ve loaded Into Homey. The app is showing as loaded under ‘Apps’ but when I go to add a device there is no option to add an Anthem MDX under “My Brands”. I’ve been through maybe 20 iterations with Chat-GPT but cannot seem to get this last bit working. I wondered if there is anyone who could take a look at the JSON scripts CHatGPT has come up with and provide any insight into why it’s not working?

I’m afraid I really don’t know what I’m doing when it comes to JSON etc, I was impressed I managed to get to a point where I have an app installed!

I will follow up with some of the ChatGPT code.

{
“id”: “com.chatgpt.anthemmdx”,
“name”: {
“en”: “Anthem MDX16 Zones”
},
“description”: {
“en”: “Control Anthem MDX16 zones via IP”
},
“category”: [
“tools”
],
“version”: “1.0.0”,
“compatibility”: “>=2.0.0”,
“author”: {
“name”: “ChatGPT”
},
“permissions”: ,
“homey”: {
“drivers”: [
{
“id”: “mdx16”,
“name”: {
“en”: “Anthem MDX16 Zone”
},
“class”: “speaker”,
“image”: “drivers/mdx16/assets/icon.svg”
}
]
}
}

This community is meant to share knowledge between users so they learn from each other. By asking this community to correct code from ChatGPT you don’t provide knowledge to this community, you don’t learn anything and neither does Chapgpt.
So I wonder if chapgpt should be banned from this community?

3 Likes

It is best to start by reading Homey Developer and understanding how Homey apps are built. The structure of the app’s folders and files are important.

There are some really good tutorials from Athom to get started in making your own apps.

ChatGPT works reasonably well, but you must still understand the context yourself, so you will be able to make the right prompts/questions to it.