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

Add support for Avidsen Soria 400W Solar Inverter #2043

Merged
merged 4 commits into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 181 additions & 0 deletions custom_components/tuya_local/devices/avidsen_soria_solarinverter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
name: Solar inverter
products:
- id: 0kllybtbzftaee7y
name: Avidsen Soria Karst-400
primary_entity:
entity: sensor
class: energy
dps:
- id: 2
type: integer
name: sensor
unit: kWh
class: total_increasing
mapping:
- scale: 100
- id: 15
name: inverter_type
type: string
- id: 16
name: inverter_id
type: string
- id: 17
name: imei_imsi
type: string
secondary_entities:
- entity: switch
name: Inverter switch
category: config
dps:
- id: 101
type: boolean
name: switch
- entity: number
name: Power Adjustement
category: config
class: power_factor
dps:
- id: 105
type: integer
name: value
range:
min: 0
max: 100
unit: "%"
- entity: button
name: Reset energy
category: config
class: restart
dps:
- id: 104
type: string
name: button
optional: true
mapping:
- dps_val: "1"
value: true
- entity: sensor
name: AC Power
class: power
dps:
- id: 103
type: integer
name: sensor
unit: W
#force: true

Check warning on line 65 in custom_components/tuya_local/devices/avidsen_soria_solarinverter.yaml

View workflow job for this annotation

GitHub Actions / lint

65:10 [comments] missing starting space in comment
class: measurement
mapping:
- scale: 10
- entity: sensor
class: power
name: Total Power
category: diagnostic
dps:
- id: 10
type: integer
name: sensor
unit: W
#force: true

Check warning on line 78 in custom_components/tuya_local/devices/avidsen_soria_solarinverter.yaml

View workflow job for this annotation

GitHub Actions / lint

78:10 [comments] missing starting space in comment
class: measurement
mapping:
- scale: 1000
- entity: sensor
name: PV Power
category: diagnostic
class: power
dps:
- id: 102
type: integer
name: sensor
unit: W
#force: true

Check warning on line 91 in custom_components/tuya_local/devices/avidsen_soria_solarinverter.yaml

View workflow job for this annotation

GitHub Actions / lint

91:10 [comments] missing starting space in comment
class: measurement
mapping:
- scale: 10
- entity: sensor
name: PV DC Voltage
class: voltage
category: diagnostic
dps:
- id: 3
type: base64
name: sensor
unit: V
optional: true
mapping:
- mask: "FFFF00000000"
scale: 10
- entity: sensor
name: PV DC Current
class: current
category: diagnostic
dps:
- id: 3
type: base64
name: sensor
unit: A
optional: true
mapping:
- mask: "0000FFFF0000"
scale: 10
- entity: sensor
name: PV DC Power
class: power
category: diagnostic
dps:
- id: 3
type: base64
name: sensor
unit: W
optional: true
mapping:
- mask: "00000000FFFF"
scale: 10
- entity: sensor
name: AC Voltage
class: voltage
category: diagnostic
dps:
- id: 7
type: base64
name: sensor
unit: V
optional: true
mapping:
- mask: "FFFF0000000000000000"
scale: 10
- entity: sensor
name: AC Current
class: current
category: diagnostic
dps:
- id: 7
type: base64
name: sensor
unit: A
optional: true
mapping:
- mask: "0000FFFFFF0000000000"
scale: 1000
- entity: sensor
name: AC active power
class: power
category: diagnostic
dps:
- id: 7
type: base64
name: sensor
unit: W
optional: true
mapping:
- mask: "0000000000FFFFFF0000"
scale: 1000
- entity: sensor
class: temperature
category: diagnostic
dps:
- id: 18
name: sensor
type: integer
class: measurement
unit: °C