Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Modbus-related improvements #81

Merged
merged 7 commits into from
Nov 7, 2024
Merged

Various Modbus-related improvements #81

merged 7 commits into from
Nov 7, 2024

Conversation

Jalle19
Copy link
Owner

@Jalle19 Jalle19 commented Oct 14, 2024

Allows reading e.g. these particular data points from Victron VenusOS:

  - name: VE.Bus AC-In L1
    type: circuit
    group: ESS
    sensor:
      type: modbus
      modbus:
        address: 10.112.4.250
        port: 502
        unit: 227
        register: h@12/int16
      filters:
        scale: 0.1
  - name: VE.Bus AC-In L2
    type: circuit
    group: ESS
    sensor:
      type: modbus
      modbus:
        address: 10.112.4.250
        port: 502
        unit: 227
        register: h@13/int16
      filters:
        scale: 0.1
  - name: VE.Bus AC-In L3
    type: circuit
    group: ESS
    sensor:
      type: modbus
      modbus:
        address: 10.112.4.250
        port: 502
        unit: 227
        register: h@14/int16
      filters:
        scale: 0.1
  - name: VE.Bus AC-In total
    type: circuit
    sensor:
      type: virtual
      virtual:
        children:
          - VE.Bus AC-In L1
          - VE.Bus AC-In L2
          - VE.Bus AC-In L3

While a static amount of waiting isn't ideal, it's better than unconditionally returning empty sensor data
@Jalle19 Jalle19 merged commit bbcdcce into master Nov 7, 2024
7 checks passed
@Jalle19 Jalle19 deleted the modbus-tweaks branch November 7, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant