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

Additional sensors not added #16

Open
Kratax opened this issue Nov 11, 2023 · 1 comment
Open

Additional sensors not added #16

Kratax opened this issue Nov 11, 2023 · 1 comment

Comments

@Kratax
Copy link

Kratax commented Nov 11, 2023

Hi,
Thanks a lot for the add on. I tried to configure the other sensors as per below but still in the HA, there is only one sensor showing on off depending on the rate... Any advice what to correct? thanks a lot.

  • platform: predistribuce
    receiver_command_id: 605
    periods:
    • name: "HDO baterie 3h"
      minutes: 120
    • name: "HDO baterie 4h"
      minutes: 160
@eMeF1
Copy link

eMeF1 commented Nov 25, 2023

@Kratax here is how I got it work. But frankly I am not a programmer and this is what ChatGPT suggested so hard to say how clean this solution is.

binary_sensor.py

raplece
self._attr_unique_id = f"{DOMAIN}-hdo-{conf_cmd}"
with
self._attr_unique_id = f"{DOMAIN}-hdo-{conf_cmd}-{minutes}"

configuration.yaml

binary_sensor:
  - platform: predistribuce
    receiver_command_id: 565
    sensor_name: "PRE HDO"
    periods:
      - name: "HDO shower"
        minutes: 10
      - name: "HDO living room heating"
        minutes: 120

sensor:
  - platform: predistribuce
    receiver_command_id: 565

I would like to have also "HDO čas do vysokého tarifu" apart from "HDO čas do nízkého tarifu" but I couldn't make GPT to make it work.

vysmaty added a commit to vysmaty/HomeAssistant-PREdistribuce that referenced this issue Dec 27, 2024
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

No branches or pull requests

2 participants