Skip to content

Commit

Permalink
Add power switch (address 0) (#19)
Browse files Browse the repository at this point in the history
This is based on the following stanza from my existing custom modbus integration:

```
      switches:
        - name: ftx_power
          slave: 1
          address: 0
          write_type: coil
          scan_interval: 5
          verify:
```

The effect of calling this is like using the "power on/off" button on the Heru remote.

This is the only omission I can find, now that I am trying to move away from my custom integration to this.
  • Loading branch information
magicus authored Nov 26, 2023
1 parent b6416db commit aed494c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions custom_components/heru/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@


HERU_SWITCHES = [
{
"name": "Power",
"modbus_address": "0x00001",
"address": 0,
"icon": ICON_SWITCH,
"register_type": COIL,
},
{
"name": "Overpressure mode",
"modbus_address": "0x00002",
Expand Down

0 comments on commit aed494c

Please sign in to comment.