Skip to content

Commit

Permalink
Merge pull request #36 from Pho3niX90/feature/33036-33040
Browse files Browse the repository at this point in the history
Feature/33036 33040
  • Loading branch information
Pho3niX90 authored Mar 9, 2024
2 parents af1beca + 8d25540 commit 1f750da
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/solis_modbus/const.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DOMAIN = "solis_modbus"
CONTROLLER = "modbus_controller"
VERSION = "1.3.4"
VERSION = "1.3.5"
POLL_INTERVAL_SECONDS = 15
MANUFACTURER = "Solis"
MODEL = "S6"
2 changes: 1 addition & 1 deletion custom_components/solis_modbus/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"issue_tracker": "https://github.com/Pho3niX90/solis_modbus/issues",
"quality_scale": "silver",
"requirements": ["pymodbus==3.5.4"],
"version": "1.3.4"
"version": "1.3.5"
}
12 changes: 12 additions & 0 deletions custom_components/solis_modbus/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
"unique": "solis_modbus_inverter_pv_today_generation",
"register": ['33035'], "device_class": SensorDeviceClass.ENERGY, "multiplier": 0.1,
"unit_of_measurement": UnitOfEnergy.KILO_WATT_HOUR, "state_class": SensorStateClass.TOTAL_INCREASING},
{"type": "SS", "name": "Solis PV Yesterday Energy Generation",
"unique": "solis_modbus_inverter_pv_yesterday_generation",
"register": ['33036'], "device_class": SensorDeviceClass.ENERGY, "multiplier": 0.1,
"unit_of_measurement": UnitOfEnergy.KILO_WATT_HOUR, "state_class": SensorStateClass.TOTAL_INCREASING},
{"type": "SS", "name": "Solis PV This Year Energy Generation",
"unique": "solis_modbus_inverter_pv_this_year_generation",
"register": ['33037', '33038'], "device_class": SensorDeviceClass.ENERGY, "multiplier": 0.1,
"unit_of_measurement": UnitOfEnergy.KILO_WATT_HOUR, "state_class": SensorStateClass.TOTAL_INCREASING},
{"type": "SS", "name": "Solis PV Last Year Energy Generation",
"unique": "solis_modbus_inverter_pv_last_year_generation",
"register": ['33039', '33040'], "device_class": SensorDeviceClass.ENERGY, "multiplier": 0.1,
"unit_of_measurement": UnitOfEnergy.KILO_WATT_HOUR, "state_class": SensorStateClass.TOTAL_INCREASING},
]
},
{
Expand Down
3 changes: 3 additions & 0 deletions docs/source/sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ The following sensors are provided in the integration.
| Solis PV Current Month Energy Generation | ENERGY | KILO_WATT_HOUR | TOTAL_INCREASING | 33031, 33032 |
| Solis PV Last Month Energy Generation | ENERGY | KILO_WATT_HOUR | TOTAL_INCREASING | 33033, 33034 |
| Solis PV Today Energy Generation | ENERGY | KILO_WATT_HOUR | TOTAL_INCREASING | 33035 |
| Solis PV Yesterday Energy Generation | ENERGY | KILO_WATT_HOUR | TOTAL_INCREASING | 33036 |
| Solis PV This Year Energy Generation | ENERGY | KILO_WATT_HOUR | TOTAL_INCREASING | 33037, 33038 |
| Solis PV Last Year Energy Generation | ENERGY | KILO_WATT_HOUR | TOTAL_INCREASING | 33039, 33040 |
| Solis PV Voltage 1 | VOLTAGE | VOLT | MEASUREMENT | 33049 |
| Solis PV Current 1 | CURRENT | AMPERE | MEASUREMENT | 33050 |
| Solis PV Voltage 2 | VOLTAGE | VOLT | MEASUREMENT | 33051 |
Expand Down

0 comments on commit 1f750da

Please sign in to comment.