Giter Club home page Giter Club logo

Comments (9)

home-assistant avatar home-assistant commented on July 24, 2024

Hey there @janiversen, mind taking a look at this issue as it has been labeled with an integration (modbus) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of modbus can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign modbus Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


modbus documentation
modbus source
(message by IssueLinks)

from core.

janiversen avatar janiversen commented on July 24, 2024

According to the yaml you are not reading holding_registers.

from core.

janiversen avatar janiversen commented on July 24, 2024

Please run the debug with only the failing hub, otherwise it is very difficult to see if there is a bug or not.

from core.

Al-Dek avatar Al-Dek commented on July 24, 2024

Please run the debug with only the failing hub, otherwise it is very difficult to see if there is a bug or not.

Π‘an you tell me how to enable the debug only for the second one without disabling the first hub.
Thanks!

from core.

Al-Dek avatar Al-Dek commented on July 24, 2024

According to the yaml you are not reading holding_registers.

I have commented "input_type: holding" just for testing purposes only.
Initially input_type: holding was included into sensor config, but I decided to check the default settings ( input_type: holding) as noted in modbus integration documentation.
I read the holding registers (function 03) starting at address 40000 with offset 501 ( or 500 for HA).

image

from core.

Al-Dek avatar Al-Dek commented on July 24, 2024

Reading data from the weather station through third-party modbus utility.
image

from core.

Al-Dek avatar Al-Dek commented on July 24, 2024

Log with 1 hub only.
home-assistant_modbus_USR-W610.log

Sensors in HA. Temperature and humidity data are real.
Meteo_pool_wind has scan_interval: 5 sec
Meteo_outdoor_humid and temperature - scan_interval: 60 sec.
But no updates at all...
image
image
image

from core.

janiversen avatar janiversen commented on July 24, 2024

Your configuration seems to be wrong, you read address 500, count 8, but your next entity is defined at 504.

You could remove the custom an read float32 directly.

I cannot see any modbus errors, and as you can see the entities are read with scan_interval and the result is interpreted correctly.

If the data do not change the HA updater will not change the UI.

So in total I cannot see any modbus integration bug.

from core.

Al-Dek avatar Al-Dek commented on July 24, 2024

You're right!
My mistake. I specified the structure: ">4f" and the count: 8.
But I have to read 4 registers of 2 bytes each (int16) and correct is: count: 4 and structure: ">4h" .
Indeed there is no integration bug, everything is working correctly.
Thank you very much for your help on this matter!

from core.

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.