Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BREAKING] Convert switch entities into binary sensors #51

Merged
merged 6 commits into from
Mar 2, 2022

Conversation

syssi
Copy link
Owner

@syssi syssi commented Mar 2, 2022

It looks like the serial interface is read-only. The switch entity doesn't fit here anymore.

Please update your configuration from

switch:
  - platform: jk_bms
    charging:
      name: "${name} charging"
    discharging:
      name: "${name} discharging"
    balancing:
      name: "${name} balancing"
    dedicated_charger:
      name: "${name} dedicated charger"

to

binary_sensor:
  - platform: jk_bms
    charging:
      name: "${name} charging"
    discharging:
      name: "${name} discharging"
    balancing:
      name: "${name} balancing"
    dedicated_charger:
      name: "${name} dedicated charger"

syssi added 2 commits March 2, 2022 16:28
It looks like the serial interface is read-only. The switch entity doesn't fit here anymore.

Please update your configuration from

```
switch:
  - platform: jk_bms
    charging:
      name: "${name} charging"
    discharging:
      name: "${name} discharging"
    balancing:
      name: "${name} balancing"
    dedicated_charger:
      name: "${name} dedicated charger"
```

to

```
binary_sensor:
  - platform: jk_bms
    charging:
      name: "${name} charging"
    discharging:
      name: "${name} discharging"
    balancing:
      name: "${name} balancing"
    dedicated_charger:
      name: "${name} dedicated charger"
```
@syssi syssi changed the title [BREAKING] Convert switch entity into binary sensors [BREAKING] Convert switch entities into binary sensors Mar 2, 2022
@syssi syssi merged commit f455055 into main Mar 2, 2022
@syssi syssi deleted the convert-switches-into-binary-sensors branch March 2, 2022 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant