Giter Club home page Giter Club logo

Comments (2)

Moutmout31 avatar Moutmout31 commented on August 17, 2024

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

from tuya-local.

Moutmout31 avatar Moutmout31 commented on August 17, 2024

Support added with PR #2043

from tuya-local.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.