Advertisement
Wenar

Olimex 7 hub

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