Giter Club home page Giter Club logo

Comments (8)

carldebilly avatar carldebilly commented on June 12, 2024

I tried with a lot of special charaters ... even emojis and it was working.

I just tried with some the charaters you just set...
image

Maybe it's related to the slashes in the name?

Carl.

from zigbee2mqttassistant.

ciotlosm avatar ciotlosm commented on June 12, 2024

The list of devices is fine, even renaming. The problem appears when I try to scan to get the network map.

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

Please give me more details about the problem you are experiencing...

  • Docker version (cpu type & OS)
  • Installation type (docker or HASS.IO)
  • Versions of Z2M + Z2MA
  • Steps to reproduce
  • Pertinent logs
  • If you can, a dumb of the problematic message on zigbee2mqtt/Climă parter 2/l2/set (you can use MQTT explorer or any other MQTT client app)

from zigbee2mqttassistant.

ciotlosm avatar ciotlosm commented on June 12, 2024

Later update:
The problem is with one device (Xiaomi 2ch Relay) that is causing the error.

Starting Zigbee2MqttAssistant v0.3.89+Branch.master.Sha.d881022fb4928b73f3d2ed27ba0927ca51178c9c...
Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down.
warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
      Another network scan request already in progress.
fail: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
      Error processing MQTT message on topic 'zigbee2mqtt/Climă parter 2/l2/set'
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: O. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonTextReader.Read()
   at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at Zigbee2MqttAssistant.Services.BridgeStateService.UpdateDevice(String friendlyName, String jsonPayload, Boolean& forceLastSeen) in d:\a\1\s\Zigbee2MqttAssistant\Services\BridgeStateService.cs:line 106
   at Zigbee2MqttAssistant.Services.MqttConnectionService.DispatchZigbee2MqttMessage(MqttApplicationMessage msg) in d:\a\1\s\Zigbee2MqttAssistant\Services\MqttConnectionService.cs:line 405
   at Zigbee2MqttAssistant.Services.MqttConnectionService.HandleApplicationMessageReceivedAsync(MqttApplicationMessageReceivedEventArgs eventArgs) in d:\a\1\s\Zigbee2MqttAssistant\Services\MqttConnectionService.cs:line 341

The message received from Developer tools in home assistant subscription for MQTT:

Message 0 received on zigbee2mqtt/Climă parter 2/l2/set at 19:34:
OFF

============= Ignore below ==========

Docker version (cpu type & OS)
I'm using RPI 3B with HassOS 3.5

Installation type (docker or HASS.IO)
HassOS 3.5

Versions of Z2M + Z2MA

Version of Zigbee2MqttAssistant (this software): 0.3.89 (0.3.89+Branch.master.Sha.d881022fb4928b73f3d2ed27ba0927ca51178c9c) Release
Version of Zigbee2Mqtt: 1.6.0
Coordinator version: 20190619
Coordinator Zigbee Id:

Steps to reproduce

  1. Go to Z2MA
  2. Go to Map tab
  3. Press Launch New Network Scan
  4. Wait for scan to finish (wait for a bunch of LQI errors in Z2M)
zigbee2mqtt:error 2019-10-28T17:25:51: Failed to execute LQI for 'Mansardă lumină'
zigbee2mqtt:error 2019-10-28T17:26:01: Failed to execute LQI for 'Baie etaj - lumină'
zigbee2mqtt:error 2019-10-28T17:26:11: Failed to execute LQI for 'Dormitor lumină'
zigbee2mqtt:error 2019-10-28T17:26:21: Failed to execute LQI for 'Dormitor lumină 1'
zigbee2mqtt:error 2019-10-28T17:26:31: Failed to execute LQI for 'Dormitor lumină 2'
zigbee2mqtt:error 2019-10-28T17:26:41: Failed to execute LQI for 'Dressing lumină'
zigbee2mqtt:error 2019-10-28T17:26:52: Failed to execute LQI for 'Scări - lumină parter'
zigbee2mqtt:error 2019-10-28T17:27:02: Failed to execute LQI for 'Curte lumină'
  1. Errors like the above in Z2MA logs

Pertinent logs
Unfortunately I restarted the addon again to start fresh, and now it worked and don't have older logs. Maybe it's related to some memory problems. I did update the addon today (Z2MA) to latest release.

If you can, a dumb of the problematic message on zigbee2mqtt/Climă parter 2/l2/set (you can use MQTT explorer or any other MQTT client app)
If I can reproduce again, I'll post here, if I can't in a day or two, I'll just assume latest update somehow solved this.

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

I just found the problem... It's at this line:
https://github.com/yllibed/Zigbee2MqttAssistant/blob/master/Zigbee2MqttAssistant/Services/MqttConnectionService.cs#L58

It was there before being able to put slashes in the name of the device and this scenario hasn't been tested.

It's generating an error in the log, but it's not suppose to have any impact on the operations of the software...

Let me check if I can fix it quickly...

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

@all-contributors please add ciotlosm to bugs

from zigbee2mqttassistant.

allcontributors avatar allcontributors commented on June 12, 2024

@carldebilly

I've put up a pull request to add @ciotlosm! 🎉

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 12, 2024

Fixed in v0.3.90! Please try it.

from zigbee2mqttassistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.