Log Error

bitzerjd's Avatar Topic Author
User User
  • Posts: 375
  • Thanks: 3

Log Error

1 year 8 months ago
#3769
Not Critical...just asking a question.

I'm getting this error over and over in the myServer Logs.

24/12/2024 02:26:13.26 · ERROR · HAGateway.ProcessEntity - Error in ProcessEntity - The requested operation requires an element of type 'String', but the target element has type 'Array'. 

Is this something that I need to fix?

Thanks!

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Log Error

1 year 8 months ago
#3782
That happens because when we parse the logs a lot of times fields have null values and the description of the field in the HA documentation says it contains a string value so we assume it will always be a string. BUT, sometimes the field represents a list of possible values and then it shows up in the json as an array of strings.  e.g. {state: "on"}  vs. {state: ["on", "off", "unknown"]}.  When the driver gets a non-null value that it thinks should be a string but it really is an array then we get that error.

To fix we need the verbose HA log so we can see what device and value needs to be parsed differently.

Please Log in or Create an account to join the conversation.

Time to create page: 0.375 seconds