# Jak zamienić moduł switch w oświetleniowy i roletowy

**URL:** <https://ai-speaker.discourse.group/t/jak-zamienic-modul-switch-w-oswietleniowy-i-roletowy/1361>\
**Category:** Uncategorized\
**Created:** [5 Luty 2021 20:23 UTC](https://ai-speaker.discourse.group/t/jak-zamienic-modul-switch-w-oswietleniowy-i-roletowy/1361 "2021-02-05T20:23:04Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Autor:** ![mikolaj](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@mikolaj](https://ai-speaker.discourse.group/u/mikolaj)\
**Data wpisu:** [16 Luty 2021 18:24 UTC](https://ai-speaker.discourse.group/t/jak-zamienic-modul-switch-w-oswietleniowy-i-roletowy/1361/14 "2021-02-16T18:24:41Z")

</div>

Udało mi się uruchomić Jako Lampe i Bramę teraz potrzebuje pomocy z Roletami Jakieś pomysły.

> - platform: mqtt  
> name: “lan relay 1”  
> state\_topic: “/dingtian/relay1916/out/relay1”  
> command\_topic: “/dingtian/relay1916/in/control”  
> payload\_on: ‘{“type”:“ON/OFF”,“idx”:“1”,“status”:“ON”,“time”:“0”,“pass”:“0”}’  
> payload\_off: ‘{“type”:“ON/OFF”,“idx”:“1”,“status”:“OFF”,“time”:“0”,“pass”:“0”}’  
> state\_on: ‘{“idx”:“1”,“status”:“ON”}’  
> state\_off: ‘{“idx”:“1”,“status”:“OFF”}’
> 
> - platform: mqtt  
> name: “lan relay 3”  
> state\_topic: “/dingtian/relay1916/out/relay3”  
> command\_topic: “/dingtian/relay1916/in/control”  
> payload\_on: ‘{“type”:“DELAY”,“idx”:“3”,“status”:“ON”,“time”:“10”,“pass”:“0”}’  
> payload\_off: ‘{“type”:“ON/OFF”,“idx”:“3”,“status”:“OFF”,“time”:“0”,“pass”:“0”}’  
> state\_on: ‘{“idx”:“3”,“status”:“ON”}’  
> state\_off: ‘{“idx”:“3”,“status”:“OFF”}’
> 
> - platform: mqtt  
> name: “lan relay 4”  
> state\_topic: “/dingtian/relay1916/out/relay4”  
> command\_topic: “/dingtian/relay1916/in/control”  
> payload\_on: ‘{“type”:“DELAY”,“idx”:“4”,“status”:“ON”,“time”:“10”,“pass”:“0”}’  
> payload\_off: ‘{“type”:“ON/OFF”,“idx”:“4”,“status”:“OFF”,“time”:“0”,“pass”:“0”}’  
> state\_on: ‘{“idx”:“4”,“status”:“ON”}’  
> state\_off: ‘{“idx”:“4”,“status”:“OFF”}’
> 
> light:
> 
> - platform: switch  
> name: “lampa relay 1”  
> entity\_id: switch.lan\_relay\_1
> 
> cover:
> 
> - platform: mqtt  
> name: “Brama relay 2”  
> device\_class: garage  
> command\_topic: “/dingtian/relay1916/in/control”  
> state\_topic: “/dingtian/relay1916/out/input2”  
> payload\_open: ‘{“type”:“JOGGING”,“idx”:“2”,“status”:“ON”,“time”:“1”,“pass”:“0”}’  
> payload\_close: ‘{“type”:“JOGGING”,“idx”:“2”,“status”:“OFF”,“time”:“1”,“pass”:“0”}’  
> payload\_stop: ‘{“type”:“JOGGING”,“idx”:“2”,“status”:“ON”,“time”:“1”,“pass”:“0”}’  
> state\_open: ‘{“idx”:“2”,“status”:“HIGH”}’  
> position\_open: 100  
> state\_closed: ‘{“idx”:“2”,“status”:“LOW”}’  
> position\_closed: 0

---

_[View the full topic](https://ai-speaker.discourse.group/t/jak-zamienic-modul-switch-w-oswietleniowy-i-roletowy/1361)._
