Skip to content

CV CC Mode as text_sensor #5

@creepystefan

Description

@creepystefan
text_sensor:   
  - platform: modbus_controller
    modbus_controller_id: mod_bus_controller
    bitmask: 0
    register_type: holding
    address: 0x11
    raw_encode: HEXBYTES
    name: "CV CC"
    lambda: |-
      uint16_t value = modbus_controller::word_from_hex_str(x, 0);
      switch (value) {
        case 0000: return std::string("CV");
        case 0001: return std::string("CC");
        default: return std::string("Unknown");
      }
      return x;

for Constant Curent and for Constant Voltage
you have 2 sensor with on off

maybe its help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions