klatremis/esphome-for-deye

Generator Data

Opened this issue · 1 comments

Hi, nice work.
Is it possible to add Datas fromn the Generator Port, like L1,2,3 power, current, volatage. I can not find this values

You can add this to the configuration yaml

` - platform: modbus_controller
modbus_controller_id: ${modbus_controller_id}
name: "${device_type}-Generator Power L1"
id: "${device_type}_generator_power_l1"
register_type: holding
address: 664
unit_of_measurement: "W"
state_class: "measurement"
accuracy_decimals: 1
filters:
- multiply: 0.1
value_type: U_WORD

  • platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${device_type}-Generator Power L2"
    id: "${device_type}_generator_power_l2"
    register_type: holding
    address: 665
    unit_of_measurement: "W"
    state_class: "measurement"
    accuracy_decimals: 1
    value_type: U_WORD

  • platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${device_type}-generator power l3"
    id: "${device_type}_generator_power_l3"
    register_type: holding
    address: 666
    unit_of_measurement: "W"
    state_class: "measurement"
    accuracy_decimals: 1
    value_type: U_WORD

  • platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${device_type}-Generator Voltage Phase L1"
    id: "${device_type}_generator_voltage_phase_l1"
    register_type: holding
    address: 661
    unit_of_measurement: "V"
    state_class: "measurement"
    accuracy_decimals: 1
    filters:

    • multiply: 0.1
      value_type: U_WORD
  • platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${device_type}-Generator Voltage Phase L2"
    id: "${device_type}_generator_voltage_phase_l2"
    register_type: holding
    address: 662
    unit_of_measurement: "V"
    state_class: "measurement"
    accuracy_decimals: 1
    filters:

    • multiply: 0.1
      value_type: U_WORD
  • platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${device_type}-Generator Voltage Phase L3"
    id: "${device_type}_generator_voltage_phase_l3"
    register_type: holding
    address: 663
    unit_of_measurement: "V"
    state_class: "measurement"
    accuracy_decimals: 1
    filters:

    • multiply: 0.1
      value_type: U_WORD
  • platform: modbus_controller
    modbus_controller_id: ${modbus_controller_id}
    name: "${device_type}-Generator Power Total"
    id: "${device_type}_generator_power_total"
    register_type: holding
    address: 667
    unit_of_measurement: "W"
    state_class: "measurement"
    accuracy_decimals: 0
    value_type: U_WORD
    `