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

LSC - 3004200 WiFi Outdoor Dual Socket *Working Config* #2

Open
Sn00kiT opened this issue May 7, 2023 · 2 comments
Open

LSC - 3004200 WiFi Outdoor Dual Socket *Working Config* #2

Sn00kiT opened this issue May 7, 2023 · 2 comments

Comments

@Sn00kiT
Copy link

Sn00kiT commented May 7, 2023

Working Config for the LSC Dual Socket Outdoor Plug:

button:
- platform: restart
  name: Restart

debug:
  update_interval: 30s

switch:
- platform: gpio
  pin: P14
  name: "Relay #1 On"
  id: relay1
  interlock: [relay2]
#  internal: true
- platform: gpio
  pin: P26
  name: "Relay #2 Off"
  id: relay2
  interlock: [relay1]
#  internal: true

- platform: gpio
  pin: P9
  name: "Relay #3 On"
  id: relay3
  interlock: [relay4]
#  internal: true
- platform: gpio
  pin: P8
  name: "Relay #4 Off"
  id: relay4
  interlock: [relay3]
#  internal: true

- platform: template
  name: "Switch_Socket1"
  id: Socket_1
  optimistic : true
  turn_on_action:
    - switch.turn_off: relay2
    - switch.turn_on: relay1
  turn_off_action:
    - switch.turn_off: relay1
    - switch.turn_on: relay2
    
- platform: template
  name: "Switch_Socket2"
  id: Socket_2
  optimistic : true
  turn_on_action:
    - switch.turn_off: relay4
    - switch.turn_on: relay3
  turn_off_action:
    - switch.turn_off: relay3
    - switch.turn_on: relay4


text_sensor:
- platform: debug
  reset_reason:
    name: Reset Reason
- platform: libretiny
  version:
    name: LibreTiny Version

sensor:
- platform: uptime
  name: Uptime

binary_sensor:
- platform: gpio
  id: binary_switch_all
  pin:
    number: P7
    inverted: true
  on_press:
    then:
    - switch.toggle: Socket_1
    - switch.toggle: Socket_2

status_led:
  pin: P1
@kuba2k2
Copy link
Member

kuba2k2 commented May 13, 2023

Is it different than the one generated by UPK? Did the UPK config have any problems?

@Sn00kiT
Copy link
Author

Sn00kiT commented May 16, 2023

Is it different than the one generated by UPK? Did the UPK config have any problems?

The YAML generated in UPK does only have the basic config and no GPIO´s associated. When using this the device simply does not have any functions, other than having one binary sensor for the button

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