Advertisement
Wenar

esphome problem kod

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