Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User input malformed #213

Closed
SeLLeRoNe opened this issue Oct 30, 2021 · 33 comments
Closed

User input malformed #213

SeLLeRoNe opened this issue Oct 30, 2021 · 33 comments

Comments

@SeLLeRoNe
Copy link

SeLLeRoNe commented Oct 30, 2021

Version information:

1.0.14
HA core-2021.11.0b2

Description:

This is from console:

POST https://HOST/api/config/config_entries/options/flow/795dd180c8ba4de585a5d8ad13c29162 400
I @ styles.ts:365
(anonymous) @ styles.ts:365
callApi @ styles.ts:365
s @ ha-card.ts:5
value @ step-flow-form.ts:69
handleEvent @ styles.ts:365

This is the POST payload:

{lights: ["21"], prefer_rgb_color: false, initial_transition: 1, transition: 45, interval: 90,…}
detect_non_ha_changes: true
initial_transition: 1
interval: 90
lights: ["21"]
0: "21"
max_brightness: 100
max_color_temp: 5500
min_brightness: 1
min_color_temp: 2000
only_once: false
prefer_rgb_color: false
separate_turn_on_commands: false
sleep_brightness: 1
sleep_color_temp: 1000
sunrise_offset: 0
sunrise_time: "None"
sunset_offset: 0
sunset_time: "None"
take_over_control: true
transition: 45

Which returns:

{"message": "User input malformed"}

Hope I've provided enogh information, if not, please feel free to ask.

Thanks
Andrea

@jk1993
Copy link

jk1993 commented Oct 30, 2021

Having the same issue. Assumed it was something related to the beta. Think the workaround for this integration is to use yaml for the config. That seems to work, but would be nice to be able to set it up in the UI

@DTTerastar
Copy link

I saw this in 2021.11.0b4

@SeLLeRoNe
Copy link
Author

Yes it started with the latest beta

@sambarlick
Copy link

I also have this issue, experienced it on 2021.119b3 and 4 and 5.

@luisleonardo
Copy link

Same here since 2021.11.0b1 and also with Passive BLE monitor.

@stevenjev
Copy link

Also noticing this error using the release version of 2021.11

@felix63
Copy link

felix63 commented Nov 4, 2021

Schermafbeelding 2021-11-05 om 00 55 29

I have the same issue. It also occurs in other custom integrations such as 'Magic Area'

@sambarlick
Copy link

sambarlick commented Nov 5, 2021 via email

@SeLLeRoNe
Copy link
Author

Yep, I believe so @sambarlick

@thomclae33
Copy link

Same issue. 😢

@pnm1977
Copy link

pnm1977 commented Nov 6, 2021

I've also got this issue. Updated to core-2021.11.1 and lost ability to add new rooms or edit existing ones through the integration option.

@maccident
Copy link

+1 Same "User input malformed" issue.

@oksibutch
Copy link

+1 have a problem too

@de-Techneut
Copy link

+1 Same here, tried to delete some lights, now I also have "User input malformed". Deleting the integration and re-adding it, does not solve it.

@randomlyalex
Copy link

Following this as i have the same issue, and also have it with programmable thermostat which is using the same input fields maybe?

@basnijholt
Copy link
Owner

I have looked into it, but cannot figure out what changed. Even HomeKit is generating these errors: https://community.home-assistant.io/t/homekit-error-user-input-malformed/353390

@randomlyalex
Copy link

I couldnt see an issue in the front end related to this, and its across many integrations, so either some kind of breaking change update needs releasing so people can adapt, or there is a bug in the front end and it needs looking it :)

@poelzi
Copy link

poelzi commented Nov 7, 2021

When I open the light dropdown menu does not have the entries selected which are written in the field. Toggeling the checkbox adds an aditional entry, so there is definitily also some desync happening.

@bgreet
Copy link

bgreet commented Nov 8, 2021

Having same issue. Integration no longer works if adding anything new from the UI

@andrewfitz
Copy link

Same issue, broke on update to 2021.11 from 2021.10.6, or from enabling hue groups support.

@LEJOUI
Copy link
Contributor

LEJOUI commented Nov 8, 2021

Same issue was found in the ble custom component. He found a solution, might be helpfull?

@SeLLeRoNe
Copy link
Author

So it seems to be something related to how the data payload is sent?
Should be dictionary but it is list instead?

@Boggie
Copy link

Boggie commented Nov 9, 2021

Is it cause by frontend bug in HA?
home-assistant/frontend#10567

@SeLLeRoNe
Copy link
Author

It could be but hasn't been picked up by HA Staff yet

@liudger
Copy link

liudger commented Nov 9, 2021

home-assistant/frontend#10585
it looks like this is the issue?

@basnijholt
Copy link
Owner

Great, a fix has just been merged by @bramkragten, I imagine it will make it to the next patch release.

@lucasfr
Copy link

lucasfr commented Nov 9, 2021

When is the next patch release expected to happen?

@Syfaro
Copy link

Syfaro commented Nov 12, 2021

After upgrading to Home Assistant 2021.11.3, it seems to work again.

@poelzi
Copy link

poelzi commented Nov 12, 2021

Strange, I can not even select any entry anymore, the whole selection box is missing. Pressing save still causes the error message.

@SeLLeRoNe
Copy link
Author

Confirmed to be fixed by 2021.11.3 that includes the related Frontend updates: home-assistant/core#59451

SeLLeRoNe added a commit to SeLLeRoNe/HA-Config that referenced this issue Nov 12, 2021
@poelzi
Copy link

poelzi commented Nov 12, 2021

Ok, I see the problem now. It is not completly fixed:
I had a lamp which was controlled by adaptive lighting. I then renamed this lamp and created a light group of the same name as the old lamp was.
The old entry is now still shown as selected in the combo box, but the entry does not actually exist anymore to select. This causes the malformed data to be sent. It is not possible to deselect the now not shown entry, causing the dialog to be broken with no way to fix it.

@SeLLeRoNe
Copy link
Author

I had the same, but not related to this issue.
It's a bug but a different one.
To fix I had to remove that specific ntegration and add it back.

@poelzi
Copy link

poelzi commented Nov 12, 2021

I opened #10608 for that. Yes, I think it's a different problem that is partially related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests