Code Monkey home page Code Monkey logo

Comments (9)

Magifi avatar Magifi commented on July 19, 2024 2

What is the question? I think you should remove the other device from the modbus, you can NOT have multiple hosts on modbus RTU since this creates a competition conflict. This error comes from not being able to read the register.

My bad (again). I thought that Nilan controller is the master and other devices are slaves (like local control panel + other devices connected via modbus). So my assumption was that there could be more than one device and all could run parallel at the same time causing no problem to each other. I will remove my other Raspberry with RS485 - usb converter as soon as I’m familiar enough with HA.

Mistakes happen and learning takes time..

from nilan.

veista avatar veista commented on July 19, 2024

Hi, failed to connect means that no data was exchanged. Check if you can ping it through HA.

from nilan.

Magifi avatar Magifi commented on July 19, 2024

Did that on host (raspberry os) and no answer. As well my laptop couldn’t get answer. So the problem must be with the converter network settings. Too tired to go on, have to continue tomorrow if time schedules allow. Thanks for the help 👍

from nilan.

MKBU2 avatar MKBU2 commented on July 19, 2024

Configuration is identical to mine and for me it works. Sharewave and Raspberry HA are connected to same switch.

from nilan.

Magifi avatar Magifi commented on July 19, 2024

Well, sometimes it's good to take a break and continue later. During the day I was trying to figure out what could be the problem. Double checking the ip addresses and stupid mistake was found. Third chapter of ip should have been 0 but I typed 1. So changing those three ip adresses in VirCom configuration tool made it work and I could connect to Nilan with no problems.

There's some strange behaviour still going on. Temperatures and other items are jumping like crazy and sometimes shows 'unknown'. I also had to remove and reinstall integration before anything showed up. I'm not sure but perhaps my other raspberry running openHAB parallel to this could cause some weird stuff. It's still stable and shows everything like before. But this is one step forward and great approvement! Thanks for all the help.

image
image
image

from nilan.

Magifi avatar Magifi commented on July 19, 2024

Well that was a short run. Don't know what I messed (perhaps configurations.yaml and logger rows were bad). So I deleted those rows and restarted HA (couple of times). Now nothing and this is what I found from Nilan logs in the frontend:

2022-12-20 23:33:20.249 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Nilan for nilan
File "/config/custom_components/nilan/init.py", line 39, in async_setup_entry
File "/config/custom_components/nilan/device.py", line 60, in setup
File "/config/custom_components/nilan/device.py", line 124, in get_machine_type

My own fault but you learn from your mistakes, right? I know this is not topic related but perhaps someone else can get few tips of these posts.. Like I have done thousand times when faced a problem and have started googling around.

from nilan.

veista avatar veista commented on July 19, 2024

What is the question? I think you should remove the other device from the modbus, you can NOT have multiple masters on modbus RTU since this creates a competition conflict. This error comes from not being able to read the register.

from nilan.

veista avatar veista commented on July 19, 2024

If your Modbus bridge supports multiple TCP masters you could add your other solution like that, provided they have different IP addresses.

from nilan.

veista avatar veista commented on July 19, 2024

And By-the-way you should check the validity of your configuration.yaml from developer tools
image

from nilan.

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.