# Tasmota PCF8574

**URL:** <https://ai-speaker.discourse.group/t/tasmota-pcf8574/2491>\
**Category:** Uncategorized\
**Created:** [8 Grudzień 2021 17:01 UTC](https://ai-speaker.discourse.group/t/tasmota-pcf8574/2491 "2021-12-08T17:01:04Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Autor:** ![Stravi](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Stravi](https://ai-speaker.discourse.group/u/Stravi)\
**Data wpisu:** [23 Marzec 2022 10:24 UTC](https://ai-speaker.discourse.group/t/tasmota-pcf8574/2491/26 "2022-03-23T10:24:34Z")

</div>

> [@Cezary.K](#):
>
> ```auto
> # Individual outputs
> switch:
> 
> ```

switch zmieniasz na binary\_sensor

i dodajesz sekcję np. taką:

```auto
on_multi_click:
- timing:
    - ON for at most 1s
    - OFF for at most 1s
    - ON for at most 1s
    - OFF for at least 0.2s
  then:
    - logger.log: "Double Clicked"
- timing:
    - ON for 1s to 2s
    - OFF for at least 0.5s
  then:
    - logger.log: "Single Long Clicked"
- timing:
    - ON for at most 1s
    - OFF for at least 0.5s
  then:
    - logger.log: "Single Short Clicked"

```

---

_[View the full topic](https://ai-speaker.discourse.group/t/tasmota-pcf8574/2491)._
