diff --git a/_templates/sinilink_XY-WPCE b/_templates/sinilink_XY-WPCE index 0596bbf10..681bdf130 100644 --- a/_templates/sinilink_XY-WPCE +++ b/_templates/sinilink_XY-WPCE @@ -3,7 +3,7 @@ date_added: 2021-10-09 title: Sinilink PCIe Computer Remote model: XY-WPCE image: /assets/device_images/sinilink_XY-WPCE.webp -template9: '{"NAME":"XY-WPCE","GPIO":[1,1,320,1,32,224,0,0,160,0,0,0,0,0],"FLAG":0,"BASE":18,"CMND":"SO114 1 | SwitchMode1 2"}' +template9: '{"NAME":"XY-WPCE","GPIO":[1,1,320,1,160,224,0,161,162,0,0,0,0,0],"FLAG":0,"BASE":18,"CMND":"SO114 1 | Pulsetime 10 | SwitchMode1 2 | SwitchMode2 2 | SwitchMode3 2"}' link: https://www.aliexpress.com/item/1005003187549517.html link2: https://www.banggood.com/XY-WPCE-Computer-Remote-Switch-Controller-PCIE-Wireless-WIFI-Smart-Controller-Timing-Delay-Reboot-p-1897350.html mlink: @@ -17,4 +17,17 @@ It is possible to use solid core 24 AWG wires to make the connection without nee ![Pinout](/assets/device_images/sinilink_XY-WPCE_pinout.webp) -Switch1 is detached and is used to monitor power status of the PC. It will be discovered as a binary sensor in Home Assistant. +Switch1 (gpio4) is detached and is the physical button on the board itself. +Switch2 (gpio10) is detached and wired to the physical button on the PC. +Switch3 (gpio12) is detached and is used to monitor power status of the PC. +All of them will be discovered as a binary sensors in Home Assistant. + +To make the physical pc button work, you'll need a rule: +Rule1 ON switch2#state=1 DO Power1 1 ENDON ON switch2#state=0 DO Power1 0 ENDON +Rule1 1 # to enable it + +EDIT 2024/06/29: +info above summarized based on +https://devices.esphome.io/devices/Sinilink-XY-WPCE +https://github.com/blakadder/templates/issues/1472 +https://github.com/arendst/Tasmota/discussions/14873