Closed Moutmout31 closed 4 months ago
Hi ! I've tried to customize Loule-Corro's file in order to add missing functionalities. I'll try it tomorrow (the system is down by night..). If it is successfull, I'll try to do a PR.
name: Solar kit 400W
products:
- id: 0kllybtbzftaee7y
name: Karst-400
primary_entity:
entity: sensor
class: energy
dps:
- id: 2
type: integer
name: reverse_energy_total
unit: kWh
class: measurement
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
optional: true
- entity: select
name: Work mode
category: config
dps:
- id: 12
type: string
name: option
mapping:
- dps_val: "power_off"
icon: "mdi:power-off"
value: Power off
- dps_val: "converter_power"
icon: "mdi:solar-power"
value: Solar power
- dps_val: "grid-power"
icon: "mdi:transmission-tower"
value: Grid power
- dps_val: "battery_power"
icon: "mdi:battery-charging"
value: Battery power
- entity: number
name: Power Adjustement
category: config
dps:
- id: 105
type: integer
class: power_factor
name: value
range:
min: 0
max: 100
unit: "%"
- entity: button
name: Reset energy meter
category: config
dps:
- id: 104
type: string
name: button
class: restart
mapping:
- dps_val: "1"
value: true
- entity: sensor
name: Power Adjustement
dps:
- id: 105
name: sensor
type: integer
class: power_factor
- entity: sensor
name: AC Power
class: power
dps:
- id: 103
type: integer
name: sensor
unit: W
force: true
class: measurement
mapping:
- scale: 10
- entity: sensor
class: power
name : Total Power
dps:
- id: 10
type: integer
name: sensor
unit: W
optional: true
class: measurement
mapping:
- scale: 1000
- entity: sensor
name: PV Power
class: power
dps:
- id: 102
type: integer
name: sensor
unit: W
force: true
class: measurement
mapping:
- scale: 10
- entity: sensor
name: PV DC Voltage
class: voltage
category: diagnostic
dps:
- id: 3
type: base64
name: sensor
unit: V
force: 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
force: true
mapping:
- mask: "0000FFFF0000"
scale: 10
- entity: sensor
name: PV DC Power
class: power
category: diagnostic
dps:
- id: 3
type: base64
name: sensor
unit: kW
force: true
mapping:
- mask: "00000000FFFF"
scale: 100
- entity: sensor
name: AC Voltage
class: voltage
category: diagnostic
dps:
- id: 7
type: base64
name: sensor
unit: V
force: true
mapping:
- mask: "FFFF000000000000"
scale: 10
- entity: sensor
name: AC Current
class: current
category: diagnostic
dps:
- id: 7
type: base64
name: sensor
unit: A
force: true
mapping:
- mask: "0000FFFFFF000000"
scale: 1000
- entity: sensor
name: AC active power
class: power
category: diagnostic
dps:
- id: 7
type: base64
name: sensor
unit: kW
force: true
mapping:
- mask: "0000000000FFFFFF"
scale: 1000
- entity: sensor
name: Energy out
class: energy
dps:
- id: 2
type: integer
name: sensor
unit: kWh
class: total
mapping:
- scale: 100
- entity: sensor
name: Temperature
class: temperature
category: diagnostic
dps:
- id: 18
name: sensor
type: integer
class: temperature
unit: °C
Support added with PR https://github.com/make-all/tuya-local/pull/2043
Log Message
Information about DPS mappings
Product ID
Information about how the device functions
This Solar Inverter is also known as Avidsen Soria. Installation instructions (in french) is availlable here: https://pim.avidsen.com/documentsproduits/fr/127100-notice-v3.pdf
After collecting all logs asked, I found that Loule-Corro already wrote a yaml config file for this device: https://github.com/Loule-Corro/tuya-local_karst-400/blob/main/Karst-400_solar_inverter.yaml
I tested it successfully - gives basic functionnalities. Some are missing :
Thanks for your great work !