ChatGPT integration fails on Flow Action Cards / THEN cards

Hi all,

I’m trying to use the Homey integration in ChatGPT to create or edit flows.

The connection itself seems to work, but ChatGPT cannot retrieve the Flow Action Cards / THEN cards. When it calls list_flow_action_cards, it fails with this error:

MCP error -32602: Invalid structured content for tool list_flow_action_cards:
[
{
“code”: “invalid_type”,
“expected”: “array”,
“received”: “string”,
“path”: [“cards”, 615, “droptoken”],
“message”: “Expected array, received string”
}
]

Because of this, ChatGPT cannot reliably read the THEN cards and cannot properly create or update flows.

Does anyone know how to find out which app or flow card is causing card number 615?
Or is this something that needs to be fixed in the ChatGPT/Homey integration parser?

Thanks!

Hi @Astrapowerrr,

I had the exact same thing. I found out that one of your apps has a broken flow card.
Disabling, uninstalling and sometimes updating does the trick.

You can follow these steps to find out which app is broken:
Go to: Homey Developer Tools
Login and go to the web api playground.
Open your browser development console.
Run this script:

(async () => {
const actions = await Homey.flow.getFlowCardActions();
for (const [key, card] of Object.entries(actions)) {
if (!card.args) continue;
for (const arg of card.args) {
if (!arg.values) continue;
for (const v of arg.values) {
if (v.title === null || v.title === undefined) {
console.log('FOUND:', key, '|', card.id, '|', card.title, '| arg:', arg.name, '| waarde:', JSON.stringify(v));
}
}
}
}
})();

See the console log in your browser.
Mine said:
FOUND:“homey:app:nl.lrvdlinden.onlineradio:get_radio_url_no”“|”“homey:app:nl.lrvdlinden.onlineradio:get_radio_url_no”“|”“Noorse Radio Station Ophalen”“| arg:”“radio_station”“| waarde:”“{“id”:“nrk_radio_mp3”,“title”:null}”

Hope this helps!

Thanks,

I contacted the developer of one app that had something off in a droptoken?

for now testing again with that app shut off.
but doesnt look promising. it takes ages to mak a flow.

for example i asked when outside is hotter then 40 degcrees switch lightbulb on and turn of after 15 minutes.
chatgpt is trying this now for about 20 minutes. and still not got it done.

That’s to bad. I have no experience with chatgpt and homey.
I use Claude Pro (code) with Homey and I am obsessed.