b3nn0 / hassio-addon-ism7mqtt

HomeAssistant Addon for running ism7mqtt to fetch data from Wolf heaters
Apache License 2.0
28 stars 3 forks source link

No Data - System.InvalidOperationException #74

Open mchrusto opened 1 month ago

mchrusto commented 1 month ago

Hello I got ISM7 card in version 2.10. After I did install addon, the config file was created successfully. I did attached. After I start the addon unfortunately I am getting following errors:

Starting ism7mqtt --hass-id=Wolf --interval=120 --ipAddress=10.10.1.150 -t /config/ism7-parameters-Wolf.json Oct 10 08:56:10 System.InvalidOperationException: There is an error in XML document (1, 40). Oct 10 08:56:10 ---> System.InvalidOperationException: was not expected. Oct 10 08:56:10 at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTelegramBundleResp.Read6_tbres() Oct 10 08:56:10 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) Oct 10 08:56:10 at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) Oct 10 08:56:10 --- End of inner exception stack trace --- Oct 10 08:56:10 at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events) Oct 10 08:56:10 at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream) Oct 10 08:56:10 at ism7mqtt.Ism7Client.Deserialize(PayloadType type, Stream data) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 381 Oct 10 08:56:10 at ism7mqtt.Ism7Client.ReadPipeAsync(PipeReader source, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 190 Oct 10 08:56:10 System.Net.Sockets.SocketException (125): Operation canceled Oct 10 08:56:10 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken) Oct 10 08:56:10 at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) Oct 10 08:56:10 at ism7ssl.Ism7SslStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken) in /app/ism7ssl/Ism7SslStream.cs:line 154 Oct 10 08:56:10 at ism7mqtt.Ism7Client.FillPipeAsync(PipeWriter target, CancellationToken cancellationToken) in /app/ism7mqtt/ISM7/Ism7Client.cs:line 145

Please see also attached log file and screenshot. Any idea what is going wrong? Thx a lot for your support. ism7-parameters-Wolf.json Wolf_ISM7_Home_Assistant Wolf_ISM7_Log.txt

zivillian commented 1 month ago

This looks like the root cause: System.InvalidOperationException: <direct-logon-response xmlns=''> was not expected.

This needs to be solved by ism7mqtt - can you create an issue over there? Please also attach the debug log, so we can see the full XML send to and received from the ISM module.