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

Daily grid consumption? Ambient temperature... #3

Open
peteDDD opened this issue Feb 13, 2025 · 2 comments
Open

Daily grid consumption? Ambient temperature... #3

peteDDD opened this issue Feb 13, 2025 · 2 comments

Comments

@peteDDD
Copy link

peteDDD commented Feb 13, 2025

The one piece of data I am not finding in the Modbus protocol is the current daily grid consumption. Am I missing this somewhere? That would be the input that would be used in the red-circled area of this flow:

Image

Also, to your experience, have you found the Ambient Temperature (temperd register 0x0223) reading to be anything logical? On my inverter, it always reads 120 deg C.

@Gizzo
Copy link
Owner

Gizzo commented Feb 14, 2025

I wasn't able to find a relevant register that would provide a grid power value. To provide that information I simply created a template sensor on the ESPHome device that would compute the power value from the Grid Current and Grid Voltage. You'll see it in the YAML code, "id: srne_grid_power".

The temperature readings I get are fairly accurate. If you take a look at the YAML you see that it requires reading as signed int. What register are you pulling temp from?

This is what I've got right now...

Image

@peteDDD
Copy link
Author

peteDDD commented Feb 14, 2025

Regarding "Ambient Temperature" here is the code on that. What temperature do you see when reading this value?

  • platform: modbus_controller
    modbus_controller_id: srne1
    name: "Ambient Temperature" #name for HA
    id: srne_Temperd #id for HA
    register_type: holding
    address: 0x0223 #register address (see modbus manual)
    value_type: S_WORD
    state_class: measurement
    unit_of_measurement: "°C"
    accuracy_decimals: 2
    device_class: temperature
    filters:
    - multiply: 0.1

Re grid power... yes, I have the power number. I would like to get an accurate energy number (kwh) per day for the grid input. There are historical numbers but for some reason, no register for the current day. (that I can find) Very odd that this is the one value I can't find.

Another question... does the "reset machine" function just turn relock the machine (the opposite of the "Unlock Modbus Device" function? (I don't want to use it if it resets some of my other settings too...). (Currently, I can unlock the modbus but am not sure how to re-lock it).

THANKS AGAIN FOR YOUR GREAT WORK!

  • --Password entry to allow settings changes
    • platform: modbus_controller
      modbus_controller_id: srne1
      use_write_multiple: true
      name: "Unlock Modbus Device"
      register_type: holding
      address: 0xE203
      write_lambda: |-
      return {0};

---Reset Machine

  • platform: modbus_controller
    name: "Inverter Reset"
    id: srne_CmdMachineReset
    modbus_controller_id: srne1
    use_write_multiple: true
    register_type: holding
    address: 0xDF01
    write_lambda: |-
    return {1};

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

No branches or pull requests

2 participants