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

Buttons dont work #22

Closed
LukasJerabek opened this issue Feb 16, 2024 · 5 comments
Closed

Buttons dont work #22

LukasJerabek opened this issue Feb 16, 2024 · 5 comments

Comments

@LukasJerabek
Copy link

LukasJerabek commented Feb 16, 2024

Hi Vaclav, thank you so much for blinds tilting firmware! I am using shelly 2PM plus and I can control blinds perfectly from home assistant now, however buttons dont do anything. I cant belive I would have messed up wiring, because I have checked many times, it should be fine. Could it be that documentation binary_sensor section no longer works? Or could you help me please, do you see a problem anywhere in my config:

esphome:
  name: zaluzie-jidelna
  friendly_name: Zaluzie Jidelna

external_components:
  - source:
      type: git
      url: https://github.com/bruxy70/Venetian-Blinds-Control
      ref: master
    components: [venetian_blinds]

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: ---
ota:
  password: ---

web_server:
  port: 80

sensor:
  - platform: wifi_signal
    name: Shelly Wifi Signal Strength
    update_interval: 60s
  - platform: uptime
    name: Shelly Uptime

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Zaluzie-Jidelna Fallback Hotspot"
    password: ---
  manual_ip:
    static_ip: ---
    gateway: ---
    subnet: ---

captive_portal:

cover:
  - platform: venetian_blinds
    name: "Zaluzie jidelna"
    id: cover1
    open_action:
      - switch.turn_on: relay1
    open_duration: 34550ms
    close_action:
      - switch.turn_on: relay2
    close_duration: 34260ms
    tilt_duration: 1600ms
    stop_action:
      - switch.turn_off: relay1
      - switch.turn_off: relay2

binary_sensor:
  - id: key1
    platform: gpio
    pin:
      number: GPIO05
      mode:
        input: true
        pullup: true
      inverted: True
    on_press:
      then:
        - cover.open: cover1
    on_release:
      then:
        - cover.stop: cover1
  - id: key2
    platform: gpio
    pin:
      number: GPIO18
      mode:
        input: true
        pullup: true
      inverted: True
    on_press:
      then:
        - cover.close: cover1
    on_release:
      then:
        - cover.stop: cover1

switch:
  - platform: gpio
    name: "Zaluzie jidelna 1"
    pin: GPIO13	
    id: relay1
    interlock: [relay2]
  - platform: gpio
    name: "Zaluzie jidelna 1"
    pin: GPIO12
    id: relay2
    interlock: [relay1]
@LukasJerabek
Copy link
Author

LukasJerabek commented Feb 21, 2024

I have bought another shelly plus 2PM and attach it to other shutter and the same happened. I cant figure this out, I think wiring is alright according to https://www.youtube.com/watch?v=w_Olv8cQOv8.

@bruxy70
Copy link
Owner

bruxy70 commented Feb 22, 2024

I do not have any Shelly 2PM, so I can't test the code. But what I'd do is, I'd first try to make the binary switch to toggle the relay directly, without the blinds control. Once you have this working, just add the cover.

@LukasJerabek
Copy link
Author

I have already tried that :/ have noticed you can "Download diagnostic" for esphome device and binary_sensor does not appear there, although it does on another devices diagnostic. I guess that must be a bug in esphome otherwise I dont get it... If the config still runs on you devices, then I suppose its not the configuration and we can close this.

@LukasJerabek
Copy link
Author

esphome/issues#5523

@LukasJerabek
Copy link
Author

Btw solution is in the esphome issue, it was my bad. Your configs are still fine.

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