Comments (11)
Finally settled on
- platform: modbus_controller # 013 Inverter MCU Firmware Version modbus_controller_id: inverter id: inverter_esphome_MCU_version_13 register_type: holding skip_updates: ${settings_skipped_updates} raw_encode: HEXBYTES address: 013 internal: true - platform: modbus_controller # 015 Inverter MCU Firmware Version modbus_controller_id: inverter id: inverter_esphome_MCU_version_15 register_type: holding skip_updates: ${settings_skipped_updates} raw_encode: HEXBYTES address: 015 internal: true - platform: template # 015-013 Inverter MCU version name: "${friendly_name} MCU Version" id: inverter_esphome_main_version icon: "mdi:text" lambda: |- return id( inverter_esphome_MCU_version_15).state + "-" + id(inverter_esphome_MCU_version_13).state; - platform: modbus_controller # 016 Inverter LCD Firmware Version modbus_controller_id: inverter id: inverter_esphome_comm_lcd_firmware_16 name: "${friendly_name} COMM Version" register_type: holding skip_updates: ${settings_skipped_updates} raw_encode: HEXBYTES icon: "mdi:text" address: 016
PERFECT!
See the results below:
from sunsynk-home-assistant-dash.
@ameran Try this and share the output
platform: modbus_controller # 013 Control board firmware
modbus_controller_id: deye
name: "Controller Board Firmware"
id: deye_controlboard_firmware
icon: "mdi:text"
register_type: holding
raw_encode: HEXBYTES
address: 013
internal: false
platform: modbus_controller # 014 Comms board firmware
modbus_controller_id: deye
name: "Communications Board Firmware"
id: deye_communicationboard_firmware
icon: "mdi:text"
register_type: holding
raw_encode: HEXBYTES
address: 014
internal: false
from sunsynk-home-assistant-dash.
Works, but it looks like there's some data missing.
For the comms board, it looks like it's reading the first 4 digits only.
for the controller board it looks like it's reading the last 4.
from sunsynk-home-assistant-dash.
I'm not sure. The docs only give one 16 bit register to read so I don't know where the rest of the data is stored
from sunsynk-home-assistant-dash.
You can try read the adjacent registers (12-13) and (14-15) and see what you get
platform: modbus_controller # 013 Control board firmware
modbus_controller_id: deye
name: "Controller Board Firmware"
id: deye_controlboard_firmware
icon: "mdi:text"
register_type: holding
raw_encode: HEXBYTES
address: 012
internal: false
register_count: 2
response_size: 4
platform: modbus_controller # 014 Comms board firmware
modbus_controller_id: deye
name: "Communications Board Firmware"
id: deye_communicationboard_firmware
icon: "mdi:text"
register_type: holding
raw_encode: HEXBYTES
address: 014
internal: false
register_count: 2
response_size: 4
from sunsynk-home-assistant-dash.
Thanks,
I tried that, modified it a bit as it wasn't pulling much more.
Used this:
-
platform: modbus_controller # 013 Control board firmware
modbus_controller_id: deye
name: "Controller Board Firmware"
id: deye_controlboard_firmware
icon: "mdi:text"
register_type: holding
raw_encode: HEXBYTES
address: 013
internal: false
response_size: 8 -
platform: modbus_controller # 014 Comms board firmware
modbus_controller_id: deye
name: "Communications Board Firmware"
id: deye_communicationboard_firmware
icon: "mdi:text"
register_type: holding
raw_encode: HEXBYTES
address: 014
internal: false
response_size: 8
which isn't too wrong, its just looks like its in the wrong order
from sunsynk-home-assistant-dash.
Maybe I'm understanding this wrong but according to your output.
register 13 = 1515
register 14 = 0000
Register 15 = 3373
Register 16 = c356
Register 17 = 0000
1 2 3 4 5 6 7 8
15 15 00 00 33 73 c3 56
00 00 33 73 c3 56 00 00
So
Comms board firmware: registers 14 16
Control board firmware: registers 15 13
from sunsynk-home-assistant-dash.
I would assume so.
So how would you code it?
Sorry, i'm useless at coding!
from sunsynk-home-assistant-dash.
Try this
- platform: modbus_controller
modbus_controller_id: deye
id: deye_communicationboard_firmware_14
register_type: holding
raw_encode: HEXBYTES
address: 014
internal: true
- platform: modbus_controller
modbus_controller_id: deye
id: deye_communicationboard_firmware_16
register_type: holding
raw_encode: HEXBYTES
address: 016
internal: true
- platform: template
name: "Communications Board Firmware"
id: inverter_esphome_comms_firmware
icon: "mdi:text"
lambda: |-
return id(deye_communicationboard_firmware_14).state + "-" + id(deye_communicationboard_firmware_16).state;
- platform: modbus_controller
modbus_controller_id: deye
id: deye_controlboard_firmware_15
register_type: holding
raw_encode: HEXBYTES
address: 015
internal: true
- platform: modbus_controller
modbus_controller_id: deye
id: deye_controlboard_firmware_13
register_type: holding
raw_encode: HEXBYTES
address: 013
internal: true
- platform: template
name: "Controller Board Firmware"
id: inverter_esphome_controller_firmware
icon: "mdi:text"
lambda: |-
return id(deye_controlboard_firmware_15).state + "-" + id(deye_controlboard_firmware_13).state;
from sunsynk-home-assistant-dash.
For the sunsynk
- platform: modbus_controller # 013 S Inverter Firmware Version
modbus_controller_id: inverter
id: inverter_esphome_soft_version_13
name: "${friendly_name} SMCU Version"
register_type: holding
skip_updates: ${settings_skipped_updates}
raw_encode: HEXBYTES
icon: "mdi:text"
address: 013
- platform: modbus_controller # 015 C Inverter Firmware Version
modbus_controller_id: inverter
id: inverter_esphome_mcu_inverter_firmware_15
name: "${friendly_name} MCU Version"
register_type: holding
skip_updates: ${settings_skipped_updates}
raw_encode: HEXBYTES
icon: "mdi:text"
address: 015
- platform: modbus_controller # 016 Inverter LCD Firmware Version
modbus_controller_id: inverter
id: inverter_esphome_comm_lcd_firmware_16
name: "${friendly_name} COMM Version"
register_type: holding
skip_updates: ${settings_skipped_updates}
raw_encode: HEXBYTES
icon: "mdi:text"
address: 016
from sunsynk-home-assistant-dash.
Finally settled on
- platform: modbus_controller # 013 Inverter MCU Firmware Version
modbus_controller_id: inverter
id: inverter_esphome_MCU_version_13
register_type: holding
skip_updates: ${settings_skipped_updates}
raw_encode: HEXBYTES
address: 013
internal: true
- platform: modbus_controller # 015 Inverter MCU Firmware Version
modbus_controller_id: inverter
id: inverter_esphome_MCU_version_15
register_type: holding
skip_updates: ${settings_skipped_updates}
raw_encode: HEXBYTES
address: 015
internal: true
- platform: template # 015-013 Inverter MCU version
name: "${friendly_name} MCU Version"
id: inverter_esphome_main_version
icon: "mdi:text"
lambda: |-
return id( inverter_esphome_MCU_version_15).state + "-" + id(inverter_esphome_MCU_version_13).state;
- platform: modbus_controller # 016 Inverter LCD Firmware Version
modbus_controller_id: inverter
id: inverter_esphome_comm_lcd_firmware_16
name: "${friendly_name} COMM Version"
register_type: holding
skip_updates: ${settings_skipped_updates}
raw_encode: HEXBYTES
icon: "mdi:text"
address: 016
from sunsynk-home-assistant-dash.
Related Issues (11)
- Solcast 3.1.4 Update Breaking Dashboard HOT 2
- Solar forcast graphs 1hour out HOT 1
- Inverter Settings in Volts HOT 3
- Wrong address HOT 1
- Resizable Card HOT 2
- F26BusUnbalance_Fault When I toggle Generator Charge HOT 1
- Modbus entities incorrect when solar exceeds 5kwh HOT 5
- Program Size too Large HOT 8
- What are the names of the sensors that i need to use? HOT 6
- Serial number not displaying correctly HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunsynk-home-assistant-dash.