Advertisement
Wenar

olimex po zmianie zasilania v1

Nov 15th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.26 KB | None | 0 0
  1. esphome:
  2. name: olimex-sw
  3.  
  4. esp32:
  5. board: esp32-poe-iso
  6.  
  7. # Enable logging
  8. logger:
  9.  
  10. # Enable Home Assistant API
  11. #api:
  12.  
  13. mqtt:
  14. broker: 192.168.1.9
  15. username: homeassistant
  16. password: zxc
  17.  
  18. ota:
  19. password: "zxc"
  20.  
  21. ethernet:
  22. type: LAN8720
  23. mdc_pin: GPIO23
  24. mdio_pin: GPIO18
  25. clk_mode: GPIO17_OUT
  26. phy_addr: 0
  27. power_pin: GPIO12
  28.  
  29. # Optional manual IP
  30. manual_ip:
  31. static_ip: 192.168.1.102
  32. gateway: 192.168.1.1
  33. subnet: 255.255.255.0
  34.  
  35. i2c:
  36. sda: 13
  37. scl: 16
  38. scan: False
  39. # id: bus_a
  40.  
  41. mcp23017:
  42. - id: 'mcp23017_hub'
  43. address: 0x27
  44. - id: 'mcp23017_hub1'
  45. address: 0x26
  46. - id: 'mcp23017_hub2'
  47. address: 0x25
  48. # statusy
  49. - id: 'mcp23017_hub3'
  50. address: 0x20
  51. - id: 'mcp23017_hub4'
  52. address: 0x21
  53. - id: 'mcp23017_hub5'
  54. address: 0x22
  55. # - id: 'mcp23017_hub6'
  56. # address: 0x23
  57.  
  58. binary_sensor:
  59. # HUB 1
  60. # H1-1
  61. - platform: gpio
  62. pin:
  63. mcp23xxx: mcp23017_hub3
  64. number: 0
  65. mode: INPUT_PULLUP
  66. inverted: True
  67. name: "Status Łazienka Góra Środek"
  68. id: a1
  69. filters:
  70. - delayed_on_off: 50ms
  71.  
  72. # H1-2
  73. - platform: gpio
  74. pin:
  75. mcp23xxx: mcp23017_hub3
  76. number: 1
  77. mode: INPUT_PULLUP
  78. inverted: True
  79. name: "Status Łazienka Góra Prawa"
  80. id: a2
  81. filters:
  82. - delayed_on_off: 50ms
  83. # H1-3
  84. - platform: gpio
  85. pin:
  86. mcp23xxx: mcp23017_hub3
  87. number: 2
  88. mode: INPUT_PULLUP
  89. inverted: True
  90. name: "Status Łazienka Dół lustro 2"
  91. id: a3
  92. filters:
  93. - delayed_on_off: 50ms
  94. # H1-4
  95. - platform: gpio
  96. pin:
  97. mcp23xxx: mcp23017_hub3
  98. number: 3
  99. mode: INPUT_PULLUP
  100. inverted: True
  101. name: "Status Podbitka"
  102. id: a4
  103. filters:
  104. - delayed_on_off: 50ms
  105. # H1-5
  106. - platform: gpio
  107. pin:
  108. mcp23xxx: mcp23017_hub3
  109. number: 4
  110. mode: INPUT_PULLUP
  111. # inverted: True
  112. name: "Status Pokój Prawy 2"
  113. id: a5
  114. filters:
  115. - delayed_on_off: 50ms
  116. # H1-6
  117. - platform: gpio
  118. pin:
  119. mcp23xxx: mcp23017_hub3
  120. number: 5
  121. mode: INPUT_PULLUP
  122. inverted: True
  123. name: "Status Pokój Prawy 1"
  124. id: a6
  125. filters:
  126. - delayed_on_off: 50ms
  127. # H1-7
  128. - platform: gpio
  129. pin:
  130. mcp23xxx: mcp23017_hub3
  131. number: 6
  132. mode: INPUT_PULLUP
  133. inverted: True
  134. name: "Status Łazienka Dół lustro 1"
  135. id: a7
  136. filters:
  137. - delayed_on_off: 50ms
  138. # H1-8
  139. - platform: gpio
  140. pin:
  141. mcp23xxx: mcp23017_hub3
  142. number: 7
  143. mode: INPUT_PULLUP
  144. # inverted: True
  145. name: "Status Przedpokój Góra Korytarz "
  146. id: a8
  147. filters:
  148. - delayed_on_off: 50ms
  149. # H1-9
  150. - platform: gpio
  151. pin:
  152. mcp23xxx: mcp23017_hub3
  153. number: 8
  154. mode: INPUT_PULLUP
  155. # inverted: True
  156. name: "Status Salon Halogen 1 - stare?"
  157. id: a9
  158. filters:
  159. - delayed_on_off: 50ms
  160. # H1-10
  161. - platform: gpio
  162. pin:
  163. mcp23xxx: mcp23017_hub3
  164. number: 9
  165. # mode: INPUT_PULLUP
  166. inverted: True
  167. name: "Status Salon Halogen 2 - stare?"
  168. id: a10
  169. filters:
  170. - delayed_on_off: 50ms
  171. # H1-11
  172. - platform: gpio
  173. pin:
  174. mcp23xxx: mcp23017_hub3
  175. number: 10
  176. mode: INPUT_PULLUP
  177. # inverted: True
  178. name: "Status 1-d11"
  179. id: a11
  180. filters:
  181. - delayed_on_off: 50ms
  182. # H1-12
  183. - platform: gpio
  184. pin:
  185. mcp23xxx: mcp23017_hub3
  186. number: 11
  187. mode: INPUT_PULLUP
  188. inverted: True
  189. name: "Status 1-d12"
  190. id: a12
  191. filters:
  192. - delayed_on_off: 50ms
  193. # H1-13
  194. - platform: gpio
  195. pin:
  196. mcp23xxx: mcp23017_hub3
  197. number: 12
  198. mode: INPUT_PULLUP
  199. inverted: True
  200. name: "Status 1-d13"
  201. id: a13
  202. filters:
  203. - delayed_on_off: 50ms
  204. # H1-14
  205. - platform: gpio
  206. pin:
  207. mcp23xxx: mcp23017_hub3
  208. number: 13
  209. mode: INPUT_PULLUP
  210. inverted: True
  211. name: "Status Pierdolnik / Biuro"
  212. id: a14
  213. filters:
  214. - delayed_on_off: 50ms
  215. # H1-15
  216. - platform: gpio
  217. pin:
  218. mcp23xxx: mcp23017_hub3
  219. number: 14
  220. mode: INPUT_PULLUP
  221. inverted: True
  222. name: "Status 1-d15"
  223. id: a15
  224. filters:
  225. - delayed_on_off: 50ms
  226. # H1-16
  227. - platform: gpio
  228. pin:
  229. mcp23xxx: mcp23017_hub3
  230. number: 15
  231. mode: INPUT_PULLUP
  232. inverted: True
  233. name: "Status 1-d16"
  234. id: a16
  235. filters:
  236. - delayed_on_off: 50ms
  237.  
  238. #
  239. # HUB 2
  240. # H2-1
  241. - platform: gpio
  242. pin:
  243. mcp23xxx: mcp23017_hub4
  244. number: 0
  245. mode: INPUT_PULLUP
  246. inverted: True
  247. name: "Status Schody Led Góra"
  248. id: b1
  249. filters:
  250. - delayed_on_off: 50ms
  251. # H2-2
  252. - platform: gpio
  253. pin:
  254. mcp23xxx: mcp23017_hub4
  255. number: 1
  256. mode: INPUT_PULLUP
  257. inverted: True
  258. name: "Status Schody Led Dół"
  259. id: b2
  260. filters:
  261. - delayed_on_off: 50ms
  262. # H2-3
  263. - platform: gpio
  264. pin:
  265. mcp23xxx: mcp23017_hub4
  266. number: 2
  267. mode: INPUT_PULLUP
  268. inverted: True
  269. name: "Status Schody Zewnętrzne Przód"
  270. id: b3
  271. filters:
  272. - delayed_on_off: 50ms
  273. # H2-4
  274. - platform: gpio
  275. pin:
  276. mcp23xxx: mcp23017_hub4
  277. number: 3
  278. mode: INPUT_PULLUP
  279. inverted: True
  280. name: "Status Elewacja Tył"
  281. id: b4
  282. filters:
  283. - delayed_on_off: 50ms
  284. # H2-5
  285. - platform: gpio
  286. pin:
  287. mcp23xxx: mcp23017_hub4
  288. number: 4
  289. mode: INPUT_PULLUP
  290. inverted: True
  291. name: "Status Elewacja Przód"
  292. id: b5
  293. filters:
  294. - delayed_on_off: 50ms
  295. # H2-6
  296. - platform: gpio
  297. pin:
  298. mcp23xxx: mcp23017_hub4
  299. number: 5
  300. mode: INPUT_PULLUP
  301. inverted: True
  302. name: "Status Kuchnia Środek"
  303. id: b6
  304. filters:
  305. - delayed_on_off: 50ms
  306. # H2-7
  307. - platform: gpio
  308. pin:
  309. mcp23xxx: mcp23017_hub4
  310. number: 6
  311. mode: INPUT_PULLUP
  312. inverted: True
  313. name: "Status 2-d7"
  314. id: b7
  315. filters:
  316. - delayed_on_off: 50ms
  317. # H2-8
  318. - platform: gpio
  319. pin:
  320. mcp23xxx: mcp23017_hub4
  321. number: 7
  322. mode: INPUT_PULLUP
  323. inverted: True
  324. name: "Status 2-d8"
  325. id: b8
  326. filters:
  327. - delayed_on_off: 50ms
  328. # H2-9
  329. - platform: gpio
  330. pin:
  331. mcp23xxx: mcp23017_hub4
  332. number: 8
  333. mode: INPUT_PULLUP
  334. inverted: True
  335. name: "Status Sypialnia Rodziców 1"
  336. id: b9
  337. filters:
  338. - delayed_on_off: 50ms
  339. # H2-10
  340. - platform: gpio
  341. pin:
  342. mcp23xxx: mcp23017_hub4
  343. number: 9
  344. mode: INPUT_PULLUP
  345. inverted: True
  346. name: "Status Gościnny 2"
  347. id: b10
  348. filters:
  349. - delayed_on_off: 50ms
  350. # H2-11
  351. - platform: gpio
  352. pin:
  353. mcp23xxx: mcp23017_hub4
  354. number: 10
  355. mode: INPUT_PULLUP
  356. inverted: True
  357. name: "Status Garderoba"
  358. id: b11
  359. filters:
  360. - delayed_on_off: 50ms
  361. # H2-12
  362. - platform: gpio
  363. pin:
  364. mcp23xxx: mcp23017_hub4
  365. number: 11
  366. mode: INPUT_PULLUP
  367. inverted: True
  368. name: "Status Salon 4"
  369. id: b12
  370. filters:
  371. - delayed_on_off: 50ms
  372. # H2-13
  373. - platform: gpio
  374. pin:
  375. mcp23xxx: mcp23017_hub4
  376. number: 12
  377. mode: INPUT_PULLUP
  378. inverted: True
  379. name: "Status Sypialnia Rodziców 2"
  380. id: b13
  381. filters:
  382. - delayed_on_off: 50ms
  383. # H2-14
  384. - platform: gpio
  385. pin:
  386. mcp23xxx: mcp23017_hub4
  387. number: 13
  388. mode: INPUT_PULLUP
  389. inverted: True
  390. name: "Status Gościnny 1"
  391. id: b14
  392. filters:
  393. - delayed_on_off: 50ms
  394. # H2-15
  395. - platform: gpio
  396. pin:
  397. mcp23xxx: mcp23017_hub4
  398. number: 14
  399. mode: INPUT_PULLUP
  400. inverted: True
  401. name: "Status Salon 3"
  402. id: b15
  403. filters:
  404. - delayed_on_off: 50ms
  405. # H2-16
  406. - platform: gpio
  407. pin:
  408. mcp23xxx: mcp23017_hub4
  409. number: 15
  410. mode: INPUT_PULLUP
  411. inverted: True
  412. name: "Status Łazienka Góra Lewa"
  413. id: b16
  414. filters:
  415. - delayed_on_off: 50ms
  416. # HUB 3
  417. # H3-1
  418. - platform: gpio
  419. pin:
  420. mcp23xxx: mcp23017_hub5
  421. number: 0
  422. mode: INPUT_PULLUP
  423. inverted: True
  424. name: "Status Salon 1"
  425. id: c1
  426. filters:
  427. - delayed_on_off: 50ms
  428. # H3-2
  429. - platform: gpio
  430. pin:
  431. mcp23xxx: mcp23017_hub5
  432. number: 1
  433. mode: INPUT_PULLUP
  434. inverted: True
  435. name: "Status Kotłownia"
  436. id: c2
  437. filters:
  438. - delayed_on_off: 50ms
  439. # H3-3
  440. - platform: gpio
  441. pin:
  442. mcp23xxx: mcp23017_hub5
  443. number: 2
  444. mode: INPUT_PULLUP
  445. inverted: True
  446. name: "Status Łazienka Dół 2"
  447. id: c3
  448. filters:
  449. - delayed_on_off: 50ms
  450. # H3-4
  451. - platform: gpio
  452. pin:
  453. mcp23xxx: mcp23017_hub5
  454. number: 3
  455. mode: INPUT_PULLUP
  456. inverted: True
  457. name: "Status Salon 2"
  458. id: c4
  459. filters:
  460. - delayed_on_off: 50ms
  461. # H3-5
  462. - platform: gpio
  463. pin:
  464. mcp23xxx: mcp23017_hub5
  465. number: 4
  466. mode: INPUT_PULLUP
  467. inverted: True
  468. name: "Status Pokój Lewy 2"
  469. id: c5
  470. filters:
  471. - delayed_on_off: 50ms
  472. # H3-6
  473. - platform: gpio
  474. pin:
  475. mcp23xxx: mcp23017_hub5
  476. number: 5
  477. mode: INPUT_PULLUP
  478. inverted: True
  479. name: "Status Łazienka Dół 1"
  480. id: c6
  481. filters:
  482. - delayed_on_off: 50ms
  483. # H3-7
  484. - platform: gpio
  485. pin:
  486. mcp23xxx: mcp23017_hub5
  487. number: 6
  488. mode: INPUT_PULLUP
  489. inverted: True
  490. name: "Status Pokój Lewy 1"
  491. id: c7
  492. filters:
  493. - delayed_on_off: 50ms
  494. # H3-8
  495. - platform: gpio
  496. pin:
  497. mcp23xxx: mcp23017_hub5
  498. number: 7
  499. mode: INPUT_PULLUP
  500. inverted: True
  501. name: "Status Wiatrołap"
  502. id: c8
  503. filters:
  504. - delayed_on_off: 50ms
  505. # H3-9
  506. - platform: gpio
  507. pin:
  508. mcp23xxx: mcp23017_hub5
  509. number: 8
  510. mode: INPUT_PULLUP
  511. inverted: True
  512. name: "Status WC"
  513. id: c9
  514. filters:
  515. - delayed_on_off: 50ms
  516. # H3-10
  517. - platform: gpio
  518. pin:
  519. mcp23xxx: mcp23017_hub5
  520. number: 9
  521. mode: INPUT_PULLUP
  522. inverted: True
  523. name: "Status Kuchnia Halogen 1"
  524. id: c10
  525. filters:
  526. - delayed_on_off: 50ms
  527. # H3-11
  528. - platform: gpio
  529. pin:
  530. mcp23xxx: mcp23017_hub5
  531. number: 10
  532. mode: INPUT_PULLUP
  533. inverted: True
  534. name: "Status Nocne Dół"
  535. id: c11
  536. filters:
  537. - delayed_on_off: 50ms
  538. # H3-12
  539. - platform: gpio
  540. pin:
  541. mcp23xxx: mcp23017_hub5
  542. number: 11
  543. mode: INPUT_PULLUP
  544. inverted: True
  545. name: "Status Nocne Góra"
  546. id: c12
  547. filters:
  548. - delayed_on_off: 50ms
  549. # H3-13
  550. - platform: gpio
  551. pin:
  552. mcp23xxx: mcp23017_hub5
  553. number: 12
  554. mode: INPUT_PULLUP
  555. inverted: True
  556. name: "Status Kuchnia Halogen 2"
  557. id: c13
  558. filters:
  559. - delayed_on_off: 50ms
  560. # H3-14
  561. - platform: gpio
  562. pin:
  563. mcp23xxx: mcp23017_hub5
  564. number: 13
  565. mode: INPUT_PULLUP
  566. inverted: True
  567. name: "Status Hol"
  568. id: c14
  569. filters:
  570. - delayed_on_off: 50ms
  571. # H3-15
  572. - platform: gpio
  573. pin:
  574. mcp23xxx: mcp23017_hub5
  575. number: 14
  576. mode: INPUT_PULLUP
  577. inverted: True
  578. name: "Status Spiżarka"
  579. id: c15
  580. filters:
  581. - delayed_on_off: 50ms
  582. # H3-16
  583. - platform: gpio
  584. pin:
  585. mcp23xxx: mcp23017_hub5
  586. number: 15
  587. mode: INPUT_PULLUP
  588. inverted: True
  589. name: "Status Schody Wiszące"
  590. id: c16
  591. filters:
  592. - delayed_on_off: 50ms
  593. ###
  594. ##
  595.  
  596.  
  597. switch:
  598. - platform: restart
  599. name: Olimex Restart
  600.  
  601.  
  602. # ##################################
  603. ### Switche Hub
  604. # H1-1
  605. - platform: gpio
  606. name: "SW Spizarka"
  607. pin:
  608. mcp23xxx: mcp23017_hub
  609. number: 0
  610. mode: OUTPUT
  611. inverted: False
  612. id: spizarka
  613. on_turn_on:
  614. - delay: 50ms
  615. - switch.turn_off: spizarka
  616. # H1-2
  617. - platform: gpio
  618. name: "SW Nocne Dol"
  619. pin:
  620. mcp23xxx: mcp23017_hub
  621. number: 1
  622. mode: OUTPUT
  623. inverted: False
  624. id: Nocnedol
  625. on_turn_on:
  626. - delay: 50ms
  627. - switch.turn_off: Nocnedol
  628. # H1-3
  629. - platform: gpio
  630. name: "SW Nad schodami"
  631. pin:
  632. mcp23xxx: mcp23017_hub
  633. number: 2
  634. mode: OUTPUT
  635. inverted: False
  636. id: Nadschodami
  637. on_turn_on:
  638. - delay: 50ms
  639. - switch.turn_off: Nadschodami
  640. # H1-4
  641. - platform: gpio
  642. name: "SW Kuchnia Halogen"
  643. pin:
  644. mcp23xxx: mcp23017_hub
  645. number: 3
  646. mode: OUTPUT
  647. inverted: False
  648. id: Kuchnia_halogen
  649. on_turn_on:
  650. - delay: 50ms
  651. - switch.turn_off: Kuchnia_halogen
  652. # H1-5
  653. - platform: gpio
  654. name: "SW Prawy 1"
  655. pin:
  656. mcp23xxx: mcp23017_hub
  657. number: 4
  658. mode: OUTPUT
  659. inverted: False
  660. id: Prawy_1
  661. on_turn_on:
  662. - delay: 50ms
  663. - switch.turn_off: Prawy_1
  664. # H1-6
  665. - platform: gpio
  666. name: "SW Nocne gora"
  667. pin:
  668. mcp23xxx: mcp23017_hub
  669. number: 5
  670. mode: OUTPUT
  671. inverted: False
  672. id: Nocne_gora
  673. on_turn_on:
  674. - delay: 50ms
  675. - switch.turn_off: Nocne_gora
  676. # H1-7
  677. - platform: gpio
  678. name: "SW Lampa 7"
  679. pin:
  680. mcp23xxx: mcp23017_hub
  681. number: 6
  682. mode: OUTPUT
  683. inverted: False
  684. id: Lampa_7
  685. on_turn_on:
  686. - delay: 50ms
  687. - switch.turn_off: Lampa_7
  688. # H1-8
  689. - platform: gpio
  690. name: "SW WC"
  691. pin:
  692. mcp23xxx: mcp23017_hub
  693. number: 7
  694. mode: OUTPUT
  695. inverted: False
  696. id: Wc
  697. on_turn_on:
  698. - delay: 50ms
  699. - switch.turn_off: Wc
  700. # H1-9
  701. - platform: gpio
  702. name: "SW Schody Led 1"
  703. pin:
  704. mcp23xxx: mcp23017_hub
  705. number: 8
  706. mode: OUTPUT
  707. inverted: False
  708. id: Lampa_9
  709. on_turn_on:
  710. - delay: 50ms
  711. - switch.turn_off: Lampa_9
  712. # H1-10
  713. - platform: gpio
  714. name: "SW Elewacja 1"
  715. pin:
  716. mcp23xxx: mcp23017_hub
  717. number: 9
  718. mode: OUTPUT
  719. inverted: False
  720. id: Lampa_10
  721. on_turn_on:
  722. - delay: 50ms
  723. - switch.turn_off: Lampa_10
  724. # H1-11
  725. - platform: gpio
  726. name: "SW Lazienka lustro 2"
  727. pin:
  728. mcp23xxx: mcp23017_hub
  729. number: 10
  730. mode: OUTPUT
  731. inverted: False
  732. id: Lampa_11
  733. on_turn_on:
  734. - delay: 50ms
  735. - switch.turn_off: Lampa_11
  736. # H1-12
  737. - platform: gpio
  738. name: "SW Nad schodami 2"
  739. pin:
  740. mcp23xxx: mcp23017_hub
  741. number: 11
  742. mode: OUTPUT
  743. inverted: False
  744. id: Lampa_12
  745. on_turn_on:
  746. - delay: 50ms
  747. - switch.turn_off: Lampa_12
  748. # H1-13
  749. - platform: gpio
  750. name: "SW Korytaz dol"
  751. pin:
  752. mcp23xxx: mcp23017_hub
  753. number: 12
  754. mode: OUTPUT
  755. inverted: False
  756. id: Lampa_13
  757. on_turn_on:
  758. - delay: 50ms
  759. - switch.turn_off: Lampa_13
  760. # H1-14
  761. - platform: gpio
  762. name: "SW Kuchnia Halogen 2"
  763. pin:
  764. mcp23xxx: mcp23017_hub
  765. number: 13
  766. mode: OUTPUT
  767. inverted: False
  768. id: Lampa_14
  769. on_turn_on:
  770. - delay: 50ms
  771. - switch.turn_off: Lampa_14
  772. # H1-15
  773. - platform: gpio
  774. name: "SW Prawy 2"
  775. pin:
  776. mcp23xxx: mcp23017_hub
  777. number: 14
  778. mode: OUTPUT
  779. inverted: False
  780. id: Lampa_15
  781. on_turn_on:
  782. - delay: 50ms
  783. - switch.turn_off: Lampa_15
  784. # H1-16
  785. - platform: gpio
  786. name: "SW Lazienka lustro 1"
  787. pin:
  788. mcp23xxx: mcp23017_hub
  789. number: 15
  790. mode: OUTPUT
  791. inverted: False
  792. id: Lampa_16
  793. on_turn_on:
  794. - delay: 50ms
  795. - switch.turn_off: Lampa_16
  796.  
  797. # ##################################
  798. # HUB 2 swicze
  799. # H2-1
  800. - platform: gpio
  801. name: "SW Sypialnia gora 1"
  802. pin:
  803. mcp23xxx: mcp23017_hub1
  804. number: 0
  805. mode: OUTPUT
  806. inverted: False
  807. id: H1_Lamp_1
  808. on_turn_on:
  809. - delay: 50ms
  810. - switch.turn_off: H1_Lamp_1
  811. # H2-2
  812. - platform: gpio
  813. name: "SW Sypialnia doł 1"
  814. pin:
  815. mcp23xxx: mcp23017_hub1
  816. number: 1
  817. mode: OUTPUT
  818. inverted: False
  819. id: H1_Lamp_2
  820. on_turn_on:
  821. - delay: 50ms
  822. - switch.turn_off: H1_Lamp_2
  823. # H2-3
  824. - platform: gpio
  825. name: "SW Schody Led 2"
  826. pin:
  827. mcp23xxx: mcp23017_hub1
  828. number: 2
  829. mode: OUTPUT
  830. inverted: False
  831. id: H1_Lamp_3
  832. on_turn_on:
  833. - delay: 50ms
  834. - switch.turn_off: H1_Lamp_3
  835. # H2-4
  836. - platform: gpio
  837. name: "SW Elewacja 2"
  838. pin:
  839. mcp23xxx: mcp23017_hub1
  840. number: 3
  841. mode: OUTPUT
  842. inverted: False
  843. id: H1_Lamp_4
  844. on_turn_on:
  845. - delay: 50ms
  846. - switch.turn_off: H1_Lamp_4
  847. # H2-5
  848. - platform: gpio
  849. name: "SW Salon Halogen 1"
  850. pin:
  851. mcp23xxx: mcp23017_hub1
  852. number: 4
  853. mode: OUTPUT
  854. inverted: False
  855. id: H1_Lamp_5
  856. on_turn_on:
  857. - delay: 50ms
  858. - switch.turn_off: H1_Lamp_5
  859. # H2-6
  860. - platform: gpio
  861. name: "SW Salon Prawa 1"
  862. pin:
  863. mcp23xxx: mcp23017_hub1
  864. number: 5
  865. mode: OUTPUT
  866. inverted: False
  867. id: H1_Lamp_6
  868. on_turn_on:
  869. - delay: 50ms
  870. - switch.turn_off: H1_Lamp_6
  871. # H2-7
  872. - platform: gpio
  873. name: "SW Garderoba"
  874. pin:
  875. mcp23xxx: mcp23017_hub1
  876. number: 6
  877. mode: OUTPUT
  878. inverted: False
  879. id: H1_Lamp_7
  880. on_turn_on:
  881. - delay: 50ms
  882. - switch.turn_off: H1_Lamp_7
  883. # H2-8
  884. - platform: gpio
  885. name: "SW Kuchnia"
  886. pin:
  887. mcp23xxx: mcp23017_hub1
  888. number: 7
  889. mode: OUTPUT
  890. inverted: False
  891. id: H1_Lamp_8
  892. on_turn_on:
  893. - delay: 50ms
  894. - switch.turn_off: H1_Lamp_8
  895. # H2-9
  896. - platform: gpio
  897. name: "SW Lamp 9"
  898. pin:
  899. mcp23xxx: mcp23017_hub1
  900. number: 8
  901. mode: OUTPUT
  902. inverted: False
  903. id: H1_Lamp_9
  904. on_turn_on:
  905. - delay: 50ms
  906. - switch.turn_off: H1_Lamp_9
  907. # H2-10
  908. - platform: gpio
  909. name: "SW Lamp 10"
  910. pin:
  911. mcp23xxx: mcp23017_hub1
  912. number: 9
  913. mode: OUTPUT
  914. inverted: False
  915. id: H1_Lamp_10
  916. on_turn_on:
  917. - delay: 50ms
  918. - switch.turn_off: H1_Lamp_10
  919. # H2-11
  920. - platform: gpio
  921. name: "SW Salon Prawa 2"
  922. pin:
  923. mcp23xxx: mcp23017_hub1
  924. number: 10
  925. mode: OUTPUT
  926. inverted: False
  927. id: H1_Lamp_11
  928. on_turn_on:
  929. - delay: 50ms
  930. - switch.turn_off: H1_Lamp_11
  931. # H2-12
  932. - platform: gpio
  933. name: "SW Zewnetrzne Schody"
  934. pin:
  935. mcp23xxx: mcp23017_hub1
  936. number: 11
  937. mode: OUTPUT
  938. inverted: False
  939. id: H1_Lamp_12
  940. on_turn_on:
  941. - delay: 50ms
  942. - switch.turn_off: H1_Lamp_12
  943. # H2-13
  944. - platform: gpio
  945. name: "SW Biuro"
  946. pin:
  947. mcp23xxx: mcp23017_hub1
  948. number: 12
  949. mode: OUTPUT
  950. inverted: False
  951. id: H1_Lamp_13
  952. on_turn_on:
  953. - delay: 50ms
  954. - switch.turn_off: H1_Lamp_13
  955. # H2-14
  956. - platform: gpio
  957. name: "SW Salon Halogen 2"
  958. pin:
  959. mcp23xxx: mcp23017_hub1
  960. number: 13
  961. mode: OUTPUT
  962. inverted: False
  963. id: H1_Lamp_14
  964. on_turn_on:
  965. - delay: 50ms
  966. - switch.turn_off: H1_Lamp_14
  967. # H2-15
  968. - platform: gpio
  969. name: "SW Sypialnia doł 2"
  970. pin:
  971. mcp23xxx: mcp23017_hub1
  972. number: 14
  973. mode: OUTPUT
  974. inverted: False
  975. id: H1_Lamp_15
  976. on_turn_on:
  977. - delay: 50ms
  978. - switch.turn_off: H1_Lamp_15
  979. # H2-16
  980. - platform: gpio
  981. name: "SW Sypialnia Gora 2"
  982. pin:
  983. mcp23xxx: mcp23017_hub1
  984. number: 15
  985. mode: OUTPUT
  986. inverted: False
  987. id: H1_Lamp_16
  988. on_turn_on:
  989. - delay: 50ms
  990. - switch.turn_off: H1_Lamp_16
  991.  
  992. # ##################################
  993. # HUB 3 swicze
  994. # H3-1
  995. - platform: gpio
  996. name: "SW 1Lamp 1"
  997. pin:
  998. mcp23xxx: mcp23017_hub2
  999. number: 0
  1000. mode: OUTPUT
  1001. inverted: False
  1002. id: H2_Lamp_1
  1003. on_turn_on:
  1004. - delay: 50ms
  1005. - switch.turn_off: H2_Lamp_1
  1006. # H3-2
  1007. - platform: gpio
  1008. name: "SW Kotlownia"
  1009. pin:
  1010. mcp23xxx: mcp23017_hub2
  1011. number: 1
  1012. mode: OUTPUT
  1013. inverted: False
  1014. id: H2_Lamp_2
  1015. on_turn_on:
  1016. - delay: 50ms
  1017. - switch.turn_off: H2_Lamp_2
  1018. # H3-3
  1019. - platform: gpio
  1020. name: "SW Korytarz gora"
  1021. pin:
  1022. mcp23xxx: mcp23017_hub2
  1023. number: 2
  1024. mode: OUTPUT
  1025. inverted: False
  1026. id: H2_Lamp_3
  1027. on_turn_on:
  1028. - delay: 50ms
  1029. - switch.turn_off: H2_Lamp_3
  1030. # H3-4
  1031. - platform: gpio
  1032. name: "SW Lazienka gora srodek"
  1033. pin:
  1034. mcp23xxx: mcp23017_hub2
  1035. number: 3
  1036. mode: OUTPUT
  1037. inverted: False
  1038. id: H2_Lamp_4
  1039. on_turn_on:
  1040. - delay: 50ms
  1041. - switch.turn_off: H2_Lamp_4
  1042. # H3-5
  1043. - platform: gpio
  1044. name: "SW Lazienka doł 1"
  1045. pin:
  1046. mcp23xxx: mcp23017_hub2
  1047. number: 4
  1048. mode: OUTPUT
  1049. inverted: False
  1050. id: H2_Lamp_5
  1051. on_turn_on:
  1052. - delay: 50ms
  1053. - switch.turn_off: H2_Lamp_5
  1054. # H3-6
  1055. - platform: gpio
  1056. name: "SW Lazienka dol 2"
  1057. pin:
  1058. mcp23xxx: mcp23017_hub2
  1059. number: 5
  1060. mode: OUTPUT
  1061. inverted: False
  1062. id: H2_Lamp_6
  1063. on_turn_on:
  1064. - delay: 50ms
  1065. - switch.turn_off: H2_Lamp_6
  1066. # H3-7
  1067. - platform: gpio
  1068. name: "SW Salon 1"
  1069. pin:
  1070. mcp23xxx: mcp23017_hub2
  1071. number: 6
  1072. mode: OUTPUT
  1073. inverted: False
  1074. id: H2_Lamp_7
  1075. on_turn_on:
  1076. - delay: 50ms
  1077. - switch.turn_off: H2_Lamp_7
  1078. # H3-8
  1079. - platform: gpio
  1080. name: "SW Lazienka gora lewa"
  1081. pin:
  1082. mcp23xxx: mcp23017_hub2
  1083. number: 7
  1084. mode: OUTPUT
  1085. inverted: False
  1086. id: H2_Lamp_8
  1087. on_turn_on:
  1088. - delay: 50ms
  1089. - switch.turn_off: H2_Lamp_8
  1090. # H3-9
  1091. - platform: gpio
  1092. name: "SW Salon 2"
  1093. pin:
  1094. mcp23xxx: mcp23017_hub2
  1095. number: 8
  1096. mode: OUTPUT
  1097. inverted: False
  1098. id: H2_Lamp_9
  1099. on_turn_on:
  1100. - delay: 50ms
  1101. - switch.turn_off: H2_Lamp_9
  1102. # H3-10
  1103. - platform: gpio
  1104. name: "SW 1Lamp 10"
  1105. pin:
  1106. mcp23xxx: mcp23017_hub2
  1107. number: 9
  1108. mode: OUTPUT
  1109. inverted: False
  1110. id: H2_Lamp_10
  1111. on_turn_on:
  1112. - delay: 50ms
  1113. - switch.turn_off: H2_Lamp_10
  1114. # H3-11
  1115. - platform: gpio
  1116. name: "SW Wiatrolap"
  1117. pin:
  1118. mcp23xxx: mcp23017_hub2
  1119. number: 10
  1120. mode: OUTPUT
  1121. inverted: False
  1122. id: H2_Lamp_11
  1123. on_turn_on:
  1124. - delay: 50ms
  1125. - switch.turn_off: H2_Lamp_11
  1126. # H3-12
  1127. - platform: gpio
  1128. name: "SW Pokoj Lili"
  1129. pin:
  1130. mcp23xxx: mcp23017_hub2
  1131. number: 11
  1132. mode: OUTPUT
  1133. inverted: False
  1134. id: H2_Lamp_12
  1135. on_turn_on:
  1136. - delay: 50ms
  1137. - switch.turn_off: H2_Lamp_12
  1138. # H3-13
  1139. - platform: gpio
  1140. name: "SW Pokoj lili 2 - NU"
  1141. pin:
  1142. mcp23xxx: mcp23017_hub2
  1143. number: 12
  1144. mode: OUTPUT
  1145. inverted: False
  1146. id: H2_Lamp_13
  1147. on_turn_on:
  1148. - delay: 50ms
  1149. - switch.turn_off: H2_Lamp_13
  1150. # H3-14
  1151. - platform: gpio
  1152. name: "SW Lazienka Gora prawa"
  1153. pin:
  1154. mcp23xxx: mcp23017_hub2
  1155. number: 13
  1156. mode: OUTPUT
  1157. inverted: False
  1158. id: H2_Lamp_14
  1159. on_turn_on:
  1160. - delay: 50ms
  1161. - switch.turn_off: H2_Lamp_14
  1162. # H3-15
  1163. - platform: gpio
  1164. name: "SW SWX2"
  1165. pin:
  1166. mcp23xxx: mcp23017_hub2
  1167. number: 14
  1168. mode: OUTPUT
  1169. inverted: False
  1170. id: H2_Lamp_15
  1171. on_turn_on:
  1172. - delay: 50ms
  1173. - switch.turn_off: H2_Lamp_15
  1174. # H3-16
  1175. - platform: gpio
  1176. name: "SW 1Lamp 16"
  1177. pin:
  1178. mcp23xxx: mcp23017_hub2
  1179. number: 15
  1180. mode: OUTPUT
  1181. inverted: False
  1182. id: H2_Lamp_16
  1183. on_turn_on:
  1184. - delay: 50ms
  1185. - switch.turn_off: H2_Lamp_16
  1186. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement