dckiller

card radio custom button card

Nov 4th, 2020 (edited)
1,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.42 KB | None | 0 0
  1. cards:
  2. - type: entities
  3. title: Enceintes
  4. entities:
  5. - label: Salon
  6. type: section
  7. - artwork: material
  8. entity: media_player.nest_hub_max_salon
  9. group: true
  10. hide_controls: false
  11. hide_volume: false
  12. power_color: true
  13. show_progress: true
  14. toggle_power: toggle
  15. icon: 'mdi:monitor-speaker'
  16. max_volume: 100
  17. min_volume: 1
  18. name: Nest Hub Max
  19. shortcuts:
  20. buttons:
  21. - data:
  22. entity_id: media_player.nest_hub_max_salon
  23. icon: 'mdi:volume-minus'
  24. id: media_player.volume_down
  25. type: service
  26. - data:
  27. entity_id: media_player.nest_hub_max_salon
  28. icon: 'mdi:volume-plus'
  29. id: media_player.volume_up
  30. type: service
  31. columns: 2
  32. hide_when_off: true
  33. type: 'custom:mini-media-player'
  34. - card:
  35. cards:
  36. - type: 'custom:button-card'
  37. aspect_ratio: 1/1
  38. entity: input_select.radio_station_salon
  39. styles:
  40. entity_picture:
  41. - filter: opacity(50%)
  42. size: 98%
  43. show_entity_picture: true
  44. show_name: false
  45. show_state: false
  46. entity_picture: /local/img/radio/NRJ.png
  47. hold_action:
  48. action: call-service
  49. service: input_select.select_option
  50. service_data:
  51. entity_id: input_select.radio_station_salon
  52. option: Aucune
  53. tap_action:
  54. action: call-service
  55. service: input_select.select_option
  56. service_data:
  57. entity_id: input_select.radio_station_salon
  58. option: NRJ
  59. state:
  60. - value: NRJ
  61. styles:
  62. entity_picture:
  63. - filter: opacity(100%)
  64. - type: 'custom:button-card'
  65. aspect_ratio: 1/1
  66. entity: input_select.radio_station_salon
  67. styles:
  68. entity_picture:
  69. - filter: opacity(50%)
  70. size: 98%
  71. show_entity_picture: true
  72. show_state: false
  73. show_name: false
  74. entity_picture: /local/img/radio/Fun.png
  75. hold_action:
  76. action: call-service
  77. service: input_select.select_option
  78. service_data:
  79. entity_id: input_select.radio_station_salon
  80. option: Aucune
  81. tap_action:
  82. action: call-service
  83. service: input_select.select_option
  84. service_data:
  85. entity_id: input_select.radio_station_salon
  86. option: Fun
  87. state:
  88. - value: Fun
  89. styles:
  90. entity_picture:
  91. - filter: opacity(100%)
  92. - type: 'custom:button-card'
  93. aspect_ratio: 1/1
  94. entity: input_select.radio_station_salon
  95. styles:
  96. entity_picture:
  97. - filter: opacity(50%)
  98. size: 98%
  99. show_entity_picture: true
  100. show_state: false
  101. show_name: false
  102. entity_picture: /local/img/radio/BFM.png
  103. hold_action:
  104. action: call-service
  105. service: input_select.select_option
  106. service_data:
  107. entity_id: input_select.radio_station_salon
  108. option: Aucune
  109. tap_action:
  110. action: call-service
  111. service: input_select.select_option
  112. service_data:
  113. entity_id: input_select.radio_station_salon
  114. option: BFM
  115. state:
  116. - value: BFM
  117. styles:
  118. entity_picture:
  119. - filter: opacity(100%)
  120. - type: 'custom:button-card'
  121. aspect_ratio: 1/1
  122. styles:
  123. entity_picture:
  124. - filter: opacity(50%)
  125. size: 98%
  126. entity: input_select.radio_station_salon
  127. show_entity_picture: true
  128. show_state: false
  129. show_name: false
  130. entity_picture: /local/img/radio/Skyrock.png
  131. hold_action:
  132. action: call-service
  133. service: input_select.select_option
  134. service_data:
  135. entity_id: input_select.radio_station_salon
  136. option: Aucune
  137. tap_action:
  138. action: call-service
  139. service: input_select.select_option
  140. service_data:
  141. entity_id: input_select.radio_station_salon
  142. option: Skyrock
  143. state:
  144. - value: Skyrock
  145. styles:
  146. entity_picture:
  147. - filter: opacity(100%)
  148. - type: 'custom:button-card'
  149. aspect_ratio: 1/1
  150. styles:
  151. entity_picture:
  152. - filter: opacity(50%)
  153. size: 98%
  154. entity: input_select.radio_station_salon
  155. show_entity_picture: true
  156. show_state: false
  157. show_name: false
  158. entity_picture: /local/img/radio/Nostalgie.png
  159. hold_action:
  160. action: call-service
  161. service: input_select.select_option
  162. service_data:
  163. entity_id: input_select.radio_station_salon
  164. option: Aucune
  165. tap_action:
  166. action: call-service
  167. service: input_select.select_option
  168. service_data:
  169. entity_id: input_select.radio_station_salon
  170. option: Nostalgie
  171. state:
  172. - value: Nostalgie
  173. styles:
  174. entity_picture:
  175. - filter: opacity(100%)
  176. - type: 'custom:button-card'
  177. aspect_ratio: 1/1
  178. entity: input_select.radio_station_salon
  179. styles:
  180. entity_picture:
  181. - filter: opacity(50%)
  182. size: 98%
  183. show_entity_picture: true
  184. show_state: false
  185. show_name: false
  186. entity_picture: /local/img/radio/Hitsradio.png
  187. hold_action:
  188. action: call-service
  189. service: input_select.select_option
  190. service_data:
  191. entity_id: input_select.radio_station_salon
  192. option: Aucune
  193. tap_action:
  194. action: call-service
  195. service: input_select.select_option
  196. service_data:
  197. entity_id: input_select.radio_station_salon
  198. option: Hitsradio
  199. state:
  200. - value: Hitsradio
  201. styles:
  202. entity_picture:
  203. - filter: opacity(100%)
  204. type: horizontal-stack
  205. conditions:
  206. - entity: media_player.nest_hub_max_salon
  207. state_not: 'off'
  208. type: conditional
  209. - card:
  210. cards:
  211. - type: 'custom:button-card'
  212. aspect_ratio: 1/1
  213. entity: input_select.radio_station_salon
  214. styles:
  215. entity_picture:
  216. - filter: opacity(50%)
  217. size: 98%
  218. show_entity_picture: true
  219. show_name: false
  220. show_state: false
  221. entity_picture: /local/img/radio/Scoop.png
  222. hold_action:
  223. action: call-service
  224. service: input_select.select_option
  225. service_data:
  226. entity_id: input_select.radio_station_salon
  227. option: Aucune
  228. tap_action:
  229. action: call-service
  230. service: input_select.select_option
  231. service_data:
  232. entity_id: input_select.radio_station_salon
  233. option: Scoop
  234. state:
  235. - value: Scoop
  236. styles:
  237. entity_picture:
  238. - filter: opacity(100%)
  239. - type: 'custom:button-card'
  240. aspect_ratio: 1/1
  241. entity: input_select.radio_station_salon
  242. styles:
  243. entity_picture:
  244. - filter: opacity(50%)
  245. size: 98%
  246. show_entity_picture: true
  247. show_state: false
  248. show_name: false
  249. entity_picture: /local/img/radio/FG.png
  250. hold_action:
  251. action: call-service
  252. service: input_select.select_option
  253. service_data:
  254. entity_id: input_select.radio_station_salon
  255. option: Aucune
  256. tap_action:
  257. action: call-service
  258. service: input_select.select_option
  259. service_data:
  260. entity_id: input_select.radio_station_salon
  261. option: FG
  262. state:
  263. - value: FG
  264. styles:
  265. entity_picture:
  266. - filter: opacity(100%)
  267. - type: 'custom:button-card'
  268. aspect_ratio: 1/1
  269. entity: input_select.radio_station_salon
  270. entity_picture: /local/img/radio/FGchic.png
  271. styles:
  272. entity_picture:
  273. - filter: opacity(50%)
  274. size: 98%
  275. show_entity_picture: true
  276. show_state: false
  277. show_name: false
  278. hold_action:
  279. action: call-service
  280. service: input_select.select_option
  281. service_data:
  282. entity_id: input_select.radio_station_salon
  283. option: Aucune
  284. tap_action:
  285. action: call-service
  286. service: input_select.select_option
  287. service_data:
  288. entity_id: input_select.radio_station_salon
  289. option: FGchic
  290. state:
  291. - value: FGchic
  292. styles:
  293. entity_picture:
  294. - filter: opacity(100%)
  295. - type: 'custom:button-card'
  296. aspect_ratio: 1/1
  297. size: 98%
  298. entity: input_select.radio_station_salon
  299. entity_picture: /local/img/radio/FGdeep.png
  300. styles:
  301. entity_picture:
  302. - filter: opacity(50%)
  303. show_entity_picture: true
  304. show_state: false
  305. show_name: false
  306. hold_action:
  307. action: call-service
  308. service: input_select.select_option
  309. service_data:
  310. entity_id: input_select.radio_station_salon
  311. option: Aucune
  312. tap_action:
  313. action: call-service
  314. service: input_select.select_option
  315. service_data:
  316. entity_id: input_select.radio_station_salon
  317. option: FGdeep
  318. state:
  319. - value: FGdeep
  320. styles:
  321. entity_picture:
  322. - filter: opacity(100%)
  323. - type: 'custom:button-card'
  324. aspect_ratio: 1/1
  325. size: 98%
  326. entity_picture: /local/img/radio/FGunder.png
  327. styles:
  328. entity_picture:
  329. - filter: opacity(50%)
  330. entity: input_select.radio_station_salon
  331. show_entity_picture: true
  332. show_state: false
  333. show_name: false
  334. hold_action:
  335. action: call-service
  336. service: input_select.select_option
  337. service_data:
  338. entity_id: input_select.radio_station_salon
  339. option: Aucune
  340. tap_action:
  341. action: call-service
  342. service: input_select.select_option
  343. service_data:
  344. entity_id: input_select.radio_station_salon
  345. option: FGunder
  346. state:
  347. - value: FGunder
  348. styles:
  349. entity_picture:
  350. - filter: opacity(100%)
  351. - type: 'custom:button-card'
  352. aspect_ratio: 1/1
  353. entity: input_select.radio_station_salon
  354. entity_picture: /local/img/radio/MTI.png
  355. styles:
  356. entity_picture:
  357. - filter: opacity(50%)
  358. size: 98%
  359. show_entity_picture: true
  360. show_state: false
  361. show_name: false
  362. hold_action:
  363. action: call-service
  364. service: input_select.select_option
  365. service_data:
  366. entity_id: input_select.radio_station_salon
  367. option: Aucune
  368. tap_action:
  369. action: call-service
  370. service: input_select.select_option
  371. service_data:
  372. entity_id: input_select.radio_station_salon
  373. option: MTI
  374. state:
  375. - value: MTI
  376. styles:
  377. entity_picture:
  378. - filter: opacity(100%)
  379. type: horizontal-stack
  380. conditions:
  381. - entity: media_player.nest_hub_max_salon
  382. state_not: 'off'
  383. type: conditional
  384. - card:
  385. cards:
  386. - type: 'custom:button-card'
  387. aspect_ratio: 1/1
  388. entity: input_select.radio_station_salon
  389. entity_picture: /local/img/radio/Virgin.png
  390. styles:
  391. entity_picture:
  392. - filter: opacity(50%)
  393. size: 98%
  394. show_entity_picture: true
  395. show_name: false
  396. show_state: false
  397. hold_action:
  398. action: call-service
  399. service: input_select.select_option
  400. service_data:
  401. entity_id: input_select.radio_station_salon
  402. option: Aucune
  403. tap_action:
  404. action: call-service
  405. service: input_select.select_option
  406. service_data:
  407. entity_id: input_select.radio_station_salon
  408. option: Virgin
  409. state:
  410. - value: Virgin
  411. styles:
  412. entity_picture:
  413. - filter: opacity(100%)
  414. - type: 'custom:button-card'
  415. color_type: blank-card
  416. - type: 'custom:button-card'
  417. color_type: blank-card
  418. - type: 'custom:button-card'
  419. color_type: blank-card
  420. - type: 'custom:button-card'
  421. color_type: blank-card
  422. - type: 'custom:button-card'
  423. color_type: blank-card
  424. type: horizontal-stack
  425. conditions:
  426. - entity: media_player.nest_hub_max_salon
  427. state_not: 'off'
  428. type: conditional
  429. - type: entities
  430. entities:
  431. - label: Salle de Bain
  432. type: section
  433. - artwork: material
  434. entity: media_player.google_home_mini_sdb
  435. group: true
  436. hide_controls: false
  437. hide_volume: false
  438. power_color: true
  439. show_progress: true
  440. toggle_power: toggle
  441. icon: 'mdi:google-home'
  442. max_volume: 100
  443. min_volume: 1
  444. name: Google Home Mini
  445. shortcuts:
  446. buttons:
  447. - data:
  448. entity_id: media_player.google_home_mini_sdb
  449. icon: 'mdi:volume-minus'
  450. id: media_player.volume_down
  451. type: service
  452. - data:
  453. entity_id: media_player.google_home_mini_sdb
  454. icon: 'mdi:volume-plus'
  455. id: media_player.volume_up
  456. type: service
  457. columns: 2
  458. hide_when_off: true
  459. type: 'custom:mini-media-player'
  460. - card:
  461. cards:
  462. - type: 'custom:button-card'
  463. aspect_ratio: 1/1
  464. entity: input_select.radio_station_sdb
  465. styles:
  466. entity_picture:
  467. - filter: opacity(50%)
  468. size: 98%
  469. show_entity_picture: true
  470. show_name: false
  471. show_state: false
  472. entity_picture: /local/img/radio/NRJ.png
  473. hold_action:
  474. action: call-service
  475. service: input_select.select_option
  476. service_data:
  477. entity_id: input_select.radio_station_sdb
  478. option: Aucune
  479. tap_action:
  480. action: call-service
  481. service: input_select.select_option
  482. service_data:
  483. entity_id: input_select.radio_station_sdb
  484. option: NRJ
  485. state:
  486. - value: NRJ
  487. styles:
  488. entity_picture:
  489. - filter: opacity(100%)
  490. - type: 'custom:button-card'
  491. aspect_ratio: 1/1
  492. entity: input_select.radio_station_sdb
  493. styles:
  494. entity_picture:
  495. - filter: opacity(50%)
  496. size: 98%
  497. show_entity_picture: true
  498. show_state: false
  499. show_name: false
  500. entity_picture: /local/img/radio/Fun.png
  501. hold_action:
  502. action: call-service
  503. service: input_select.select_option
  504. service_data:
  505. entity_id: input_select.radio_station_sdb
  506. option: Aucune
  507. tap_action:
  508. action: call-service
  509. service: input_select.select_option
  510. service_data:
  511. entity_id: input_select.radio_station_sdb
  512. option: Fun
  513. state:
  514. - value: Fun
  515. styles:
  516. entity_picture:
  517. - filter: opacity(100%)
  518. - type: 'custom:button-card'
  519. aspect_ratio: 1/1
  520. entity: input_select.radio_station_sdb
  521. styles:
  522. entity_picture:
  523. - filter: opacity(50%)
  524. size: 98%
  525. show_entity_picture: true
  526. show_state: false
  527. show_name: false
  528. entity_picture: /local/img/radio/BFM.png
  529. hold_action:
  530. action: call-service
  531. service: input_select.select_option
  532. service_data:
  533. entity_id: input_select.radio_station_sdb
  534. option: Aucune
  535. tap_action:
  536. action: call-service
  537. service: input_select.select_option
  538. service_data:
  539. entity_id: input_select.radio_station_sdb
  540. option: BFM
  541. state:
  542. - value: BFM
  543. styles:
  544. entity_picture:
  545. - filter: opacity(100%)
  546. - type: 'custom:button-card'
  547. aspect_ratio: 1/1
  548. styles:
  549. entity_picture:
  550. - filter: opacity(50%)
  551. size: 98%
  552. entity: input_select.radio_station_sdb
  553. show_entity_picture: true
  554. show_state: false
  555. show_name: false
  556. entity_picture: /local/img/radio/Skyrock.png
  557. hold_action:
  558. action: call-service
  559. service: input_select.select_option
  560. service_data:
  561. entity_id: input_select.radio_station_sdb
  562. option: Aucune
  563. tap_action:
  564. action: call-service
  565. service: input_select.select_option
  566. service_data:
  567. entity_id: input_select.radio_station_sdb
  568. option: Skyrock
  569. state:
  570. - value: Skyrock
  571. styles:
  572. entity_picture:
  573. - filter: opacity(100%)
  574. - type: 'custom:button-card'
  575. aspect_ratio: 1/1
  576. styles:
  577. entity_picture:
  578. - filter: opacity(50%)
  579. size: 98%
  580. entity: input_select.radio_station_sdb
  581. show_entity_picture: true
  582. show_state: false
  583. show_name: false
  584. entity_picture: /local/img/radio/Nostalgie.png
  585. hold_action:
  586. action: call-service
  587. service: input_select.select_option
  588. service_data:
  589. entity_id: input_select.radio_station_sdb
  590. option: Aucune
  591. tap_action:
  592. action: call-service
  593. service: input_select.select_option
  594. service_data:
  595. entity_id: input_select.radio_station_sdb
  596. option: Nostalgie
  597. state:
  598. - value: Nostalgie
  599. styles:
  600. entity_picture:
  601. - filter: opacity(100%)
  602. - type: 'custom:button-card'
  603. aspect_ratio: 1/1
  604. entity: input_select.radio_station_sdb
  605. styles:
  606. entity_picture:
  607. - filter: opacity(50%)
  608. size: 98%
  609. show_entity_picture: true
  610. show_state: false
  611. show_name: false
  612. entity_picture: /local/img/radio/Hitsradio.png
  613. hold_action:
  614. action: call-service
  615. service: input_select.select_option
  616. service_data:
  617. entity_id: input_select.radio_station_sdb
  618. option: Aucune
  619. tap_action:
  620. action: call-service
  621. service: input_select.select_option
  622. service_data:
  623. entity_id: input_select.radio_station_sdb
  624. option: Hitsradio
  625. state:
  626. - value: Hitsradio
  627. styles:
  628. entity_picture:
  629. - filter: opacity(100%)
  630. type: horizontal-stack
  631. conditions:
  632. - entity: media_player.google_home_mini_sdb
  633. state_not: 'off'
  634. type: conditional
  635. - card:
  636. cards:
  637. - type: 'custom:button-card'
  638. aspect_ratio: 1/1
  639. entity: input_select.radio_station_sdb
  640. styles:
  641. entity_picture:
  642. - filter: opacity(50%)
  643. size: 98%
  644. show_entity_picture: true
  645. show_name: false
  646. show_state: false
  647. entity_picture: /local/img/radio/Scoop.png
  648. hold_action:
  649. action: call-service
  650. service: input_select.select_option
  651. service_data:
  652. entity_id: input_select.radio_station_sdb
  653. option: Aucune
  654. tap_action:
  655. action: call-service
  656. service: input_select.select_option
  657. service_data:
  658. entity_id: input_select.radio_station_sdb
  659. option: Scoop
  660. state:
  661. - value: Scoop
  662. styles:
  663. entity_picture:
  664. - filter: opacity(100%)
  665. - type: 'custom:button-card'
  666. aspect_ratio: 1/1
  667. entity: input_select.radio_station_sdb
  668. styles:
  669. entity_picture:
  670. - filter: opacity(50%)
  671. size: 98%
  672. show_entity_picture: true
  673. show_state: false
  674. show_name: false
  675. entity_picture: /local/img/radio/FG.png
  676. hold_action:
  677. action: call-service
  678. service: input_select.select_option
  679. service_data:
  680. entity_id: input_select.radio_station_sdb
  681. option: Aucune
  682. tap_action:
  683. action: call-service
  684. service: input_select.select_option
  685. service_data:
  686. entity_id: input_select.radio_station_sdb
  687. option: FG
  688. state:
  689. - value: FG
  690. styles:
  691. entity_picture:
  692. - filter: opacity(100%)
  693. - type: 'custom:button-card'
  694. aspect_ratio: 1/1
  695. entity: input_select.radio_station_sdb
  696. entity_picture: /local/img/radio/FGchic.png
  697. styles:
  698. entity_picture:
  699. - filter: opacity(50%)
  700. size: 98%
  701. show_entity_picture: true
  702. show_state: false
  703. show_name: false
  704. hold_action:
  705. action: call-service
  706. service: input_select.select_option
  707. service_data:
  708. entity_id: input_select.radio_station_sdb
  709. option: Aucune
  710. tap_action:
  711. action: call-service
  712. service: input_select.select_option
  713. service_data:
  714. entity_id: input_select.radio_station_sdb
  715. option: FGchic
  716. state:
  717. - value: FGchic
  718. styles:
  719. entity_picture:
  720. - filter: opacity(100%)
  721. - type: 'custom:button-card'
  722. aspect_ratio: 1/1
  723. size: 98%
  724. entity: input_select.radio_station_sdb
  725. entity_picture: /local/img/radio/FGdeep.png
  726. styles:
  727. entity_picture:
  728. - filter: opacity(50%)
  729. show_entity_picture: true
  730. show_state: false
  731. show_name: false
  732. hold_action:
  733. action: call-service
  734. service: input_select.select_option
  735. service_data:
  736. entity_id: input_select.radio_station_sdb
  737. option: Aucune
  738. tap_action:
  739. action: call-service
  740. service: input_select.select_option
  741. service_data:
  742. entity_id: input_select.radio_station_sdb
  743. option: FGdeep
  744. state:
  745. - value: FGdeep
  746. styles:
  747. entity_picture:
  748. - filter: opacity(100%)
  749. - type: 'custom:button-card'
  750. aspect_ratio: 1/1
  751. size: 98%
  752. entity_picture: /local/img/radio/FGunder.png
  753. styles:
  754. entity_picture:
  755. - filter: opacity(50%)
  756. entity: input_select.radio_station_sdb
  757. show_entity_picture: true
  758. show_state: false
  759. show_name: false
  760. hold_action:
  761. action: call-service
  762. service: input_select.select_option
  763. service_data:
  764. entity_id: input_select.radio_station_sdb
  765. option: Aucune
  766. tap_action:
  767. action: call-service
  768. service: input_select.select_option
  769. service_data:
  770. entity_id: input_select.radio_station_sdb
  771. option: FGunder
  772. state:
  773. - value: FGunder
  774. styles:
  775. entity_picture:
  776. - filter: opacity(100%)
  777. - type: 'custom:button-card'
  778. aspect_ratio: 1/1
  779. entity: input_select.radio_station_sdb
  780. entity_picture: /local/img/radio/MTI.png
  781. styles:
  782. entity_picture:
  783. - filter: opacity(50%)
  784. size: 98%
  785. show_entity_picture: true
  786. show_state: false
  787. show_name: false
  788. hold_action:
  789. action: call-service
  790. service: input_select.select_option
  791. service_data:
  792. entity_id: input_select.radio_station_sdb
  793. option: Aucune
  794. tap_action:
  795. action: call-service
  796. service: input_select.select_option
  797. service_data:
  798. entity_id: input_select.radio_station_sdb
  799. option: MTI
  800. state:
  801. - value: MTI
  802. styles:
  803. entity_picture:
  804. - filter: opacity(100%)
  805. type: horizontal-stack
  806. conditions:
  807. - entity: media_player.google_home_mini_sdb
  808. state_not: 'off'
  809. type: conditional
  810. - card:
  811. cards:
  812. - type: 'custom:button-card'
  813. aspect_ratio: 1/1
  814. entity: input_select.radio_station_sdb
  815. entity_picture: /local/img/radio/Virgin.png
  816. styles:
  817. entity_picture:
  818. - filter: opacity(50%)
  819. size: 98%
  820. show_entity_picture: true
  821. show_name: false
  822. show_state: false
  823. hold_action:
  824. action: call-service
  825. service: input_select.select_option
  826. service_data:
  827. entity_id: input_select.radio_station_sdb
  828. option: Aucune
  829. tap_action:
  830. action: call-service
  831. service: input_select.select_option
  832. service_data:
  833. entity_id: input_select.radio_station_sdb
  834. option: Virgin
  835. state:
  836. - value: Virgin
  837. styles:
  838. entity_picture:
  839. - filter: opacity(100%)
  840. - type: 'custom:button-card'
  841. color_type: blank-card
  842. - type: 'custom:button-card'
  843. color_type: blank-card
  844. - type: 'custom:button-card'
  845. color_type: blank-card
  846. - type: 'custom:button-card'
  847. color_type: blank-card
  848. - type: 'custom:button-card'
  849. color_type: blank-card
  850. type: horizontal-stack
  851. conditions:
  852. - entity: media_player.google_home_mini_sdb
  853. state_not: 'off'
  854. type: conditional
  855. - type: entities
  856. entities:
  857. - artwork: material
  858. entity: media_player.enceinte_mi_salle_de_bain
  859. group: true
  860. hide_controls: false
  861. hide_volume: false
  862. power_color: true
  863. show_progress: true
  864. toggle_power: toggle
  865. icon: 'mdi:speaker'
  866. max_volume: 100
  867. min_volume: 1
  868. name: Xiaomi Speaker Network
  869. shortcuts:
  870. buttons:
  871. - data:
  872. entity_id: media_player.enceinte_mi_salle_de_bain
  873. icon: 'mdi:volume-minus'
  874. id: media_player.volume_down
  875. type: service
  876. - data:
  877. entity_id: media_player.enceinte_mi_salle_de_bain
  878. icon: 'mdi:volume-plus'
  879. id: media_player.volume_up
  880. type: service
  881. columns: 2
  882. hide_when_off: true
  883. type: 'custom:mini-media-player'
  884. - card:
  885. cards:
  886. - type: 'custom:button-card'
  887. aspect_ratio: 1/1
  888. entity: input_select.radio_xiaomi_speaker_network
  889. styles:
  890. entity_picture:
  891. - filter: opacity(50%)
  892. size: 98%
  893. show_entity_picture: true
  894. show_name: false
  895. show_state: false
  896. entity_picture: /local/img/radio/NRJ.png
  897. hold_action:
  898. action: call-service
  899. service: input_select.select_option
  900. service_data:
  901. entity_id: input_select.radio_xiaomi_speaker_network
  902. option: Aucune
  903. tap_action:
  904. action: call-service
  905. service: input_select.select_option
  906. service_data:
  907. entity_id: input_select.radio_xiaomi_speaker_network
  908. option: NRJ
  909. state:
  910. - value: NRJ
  911. styles:
  912. entity_picture:
  913. - filter: opacity(100%)
  914. - type: 'custom:button-card'
  915. aspect_ratio: 1/1
  916. entity: input_select.radio_xiaomi_speaker_network
  917. styles:
  918. entity_picture:
  919. - filter: opacity(50%)
  920. size: 98%
  921. show_entity_picture: true
  922. show_state: false
  923. show_name: false
  924. entity_picture: /local/img/radio/Fun.png
  925. hold_action:
  926. action: call-service
  927. service: input_select.select_option
  928. service_data:
  929. entity_id: input_select.radio_xiaomi_speaker_network
  930. option: Aucune
  931. tap_action:
  932. action: call-service
  933. service: input_select.select_option
  934. service_data:
  935. entity_id: input_select.radio_xiaomi_speaker_network
  936. option: Fun
  937. state:
  938. - value: Fun
  939. styles:
  940. entity_picture:
  941. - filter: opacity(100%)
  942. - type: 'custom:button-card'
  943. aspect_ratio: 1/1
  944. entity: input_select.radio_xiaomi_speaker_network
  945. styles:
  946. entity_picture:
  947. - filter: opacity(50%)
  948. size: 98%
  949. show_entity_picture: true
  950. show_state: false
  951. show_name: false
  952. entity_picture: /local/img/radio/BFM.png
  953. hold_action:
  954. action: call-service
  955. service: input_select.select_option
  956. service_data:
  957. entity_id: input_select.radio_xiaomi_speaker_network
  958. option: Aucune
  959. tap_action:
  960. action: call-service
  961. service: input_select.select_option
  962. service_data:
  963. entity_id: input_select.radio_xiaomi_speaker_network
  964. option: BFM
  965. state:
  966. - value: BFM
  967. styles:
  968. entity_picture:
  969. - filter: opacity(100%)
  970. - type: 'custom:button-card'
  971. aspect_ratio: 1/1
  972. styles:
  973. entity_picture:
  974. - filter: opacity(50%)
  975. size: 98%
  976. entity: input_select.radio_xiaomi_speaker_network
  977. show_entity_picture: true
  978. show_state: false
  979. show_name: false
  980. entity_picture: /local/img/radio/Skyrock.png
  981. hold_action:
  982. action: call-service
  983. service: input_select.select_option
  984. service_data:
  985. entity_id: input_select.radio_xiaomi_speaker_network
  986. option: Aucune
  987. tap_action:
  988. action: call-service
  989. service: input_select.select_option
  990. service_data:
  991. entity_id: input_select.radio_xiaomi_speaker_network
  992. option: Skyrock
  993. state:
  994. - value: Skyrock
  995. styles:
  996. entity_picture:
  997. - filter: opacity(100%)
  998. - type: 'custom:button-card'
  999. aspect_ratio: 1/1
  1000. styles:
  1001. entity_picture:
  1002. - filter: opacity(50%)
  1003. size: 98%
  1004. entity: input_select.radio_xiaomi_speaker_network
  1005. show_entity_picture: true
  1006. show_state: false
  1007. show_name: false
  1008. entity_picture: /local/img/radio/Nostalgie.png
  1009. hold_action:
  1010. action: call-service
  1011. service: input_select.select_option
  1012. service_data:
  1013. entity_id: input_select.radio_xiaomi_speaker_network
  1014. option: Aucune
  1015. tap_action:
  1016. action: call-service
  1017. service: input_select.select_option
  1018. service_data:
  1019. entity_id: input_select.radio_xiaomi_speaker_network
  1020. option: Nostalgie
  1021. state:
  1022. - value: Nostalgie
  1023. styles:
  1024. entity_picture:
  1025. - filter: opacity(100%)
  1026. - type: 'custom:button-card'
  1027. aspect_ratio: 1/1
  1028. entity: input_select.radio_xiaomi_speaker_network
  1029. styles:
  1030. entity_picture:
  1031. - filter: opacity(50%)
  1032. size: 98%
  1033. show_entity_picture: true
  1034. show_state: false
  1035. show_name: false
  1036. entity_picture: /local/img/radio/Hitsradio.png
  1037. hold_action:
  1038. action: call-service
  1039. service: input_select.select_option
  1040. service_data:
  1041. entity_id: input_select.radio_xiaomi_speaker_network
  1042. option: Aucune
  1043. tap_action:
  1044. action: call-service
  1045. service: input_select.select_option
  1046. service_data:
  1047. entity_id: input_select.radio_xiaomi_speaker_network
  1048. option: Hitsradio
  1049. state:
  1050. - value: Hitsradio
  1051. styles:
  1052. entity_picture:
  1053. - filter: opacity(100%)
  1054. type: horizontal-stack
  1055. conditions:
  1056. - entity: media_player.enceinte_mi_salle_de_bain
  1057. state_not: 'off'
  1058. type: conditional
  1059. - card:
  1060. cards:
  1061. - type: 'custom:button-card'
  1062. aspect_ratio: 1/1
  1063. entity: input_select.radio_xiaomi_speaker_network
  1064. styles:
  1065. entity_picture:
  1066. - filter: opacity(50%)
  1067. size: 98%
  1068. show_entity_picture: true
  1069. show_name: false
  1070. show_state: false
  1071. entity_picture: /local/img/radio/Scoop.png
  1072. hold_action:
  1073. action: call-service
  1074. service: input_select.select_option
  1075. service_data:
  1076. entity_id: input_select.radio_xiaomi_speaker_network
  1077. option: Aucune
  1078. tap_action:
  1079. action: call-service
  1080. service: input_select.select_option
  1081. service_data:
  1082. entity_id: input_select.radio_xiaomi_speaker_network
  1083. option: Scoop
  1084. state:
  1085. - value: Scoop
  1086. styles:
  1087. entity_picture:
  1088. - filter: opacity(100%)
  1089. - type: 'custom:button-card'
  1090. aspect_ratio: 1/1
  1091. entity: input_select.radio_xiaomi_speaker_network
  1092. styles:
  1093. entity_picture:
  1094. - filter: opacity(50%)
  1095. size: 98%
  1096. show_entity_picture: true
  1097. show_state: false
  1098. show_name: false
  1099. entity_picture: /local/img/radio/FG.png
  1100. hold_action:
  1101. action: call-service
  1102. service: input_select.select_option
  1103. service_data:
  1104. entity_id: input_select.radio_xiaomi_speaker_network
  1105. option: Aucune
  1106. tap_action:
  1107. action: call-service
  1108. service: input_select.select_option
  1109. service_data:
  1110. entity_id: input_select.radio_xiaomi_speaker_network
  1111. option: FG
  1112. state:
  1113. - value: FG
  1114. styles:
  1115. entity_picture:
  1116. - filter: opacity(100%)
  1117. - type: 'custom:button-card'
  1118. aspect_ratio: 1/1
  1119. entity: input_select.radio_xiaomi_speaker_network
  1120. entity_picture: /local/img/radio/FGchic.png
  1121. styles:
  1122. entity_picture:
  1123. - filter: opacity(50%)
  1124. size: 98%
  1125. show_entity_picture: true
  1126. show_state: false
  1127. show_name: false
  1128. hold_action:
  1129. action: call-service
  1130. service: input_select.select_option
  1131. service_data:
  1132. entity_id: input_select.radio_xiaomi_speaker_network
  1133. option: Aucune
  1134. tap_action:
  1135. action: call-service
  1136. service: input_select.select_option
  1137. service_data:
  1138. entity_id: input_select.radio_xiaomi_speaker_network
  1139. option: FGchic
  1140. state:
  1141. - value: FGchic
  1142. styles:
  1143. entity_picture:
  1144. - filter: opacity(100%)
  1145. - type: 'custom:button-card'
  1146. aspect_ratio: 1/1
  1147. size: 98%
  1148. entity: input_select.radio_xiaomi_speaker_network
  1149. entity_picture: /local/img/radio/FGdeep.png
  1150. styles:
  1151. entity_picture:
  1152. - filter: opacity(50%)
  1153. show_entity_picture: true
  1154. show_state: false
  1155. show_name: false
  1156. hold_action:
  1157. action: call-service
  1158. service: input_select.select_option
  1159. service_data:
  1160. entity_id: input_select.radio_xiaomi_speaker_network
  1161. option: Aucune
  1162. tap_action:
  1163. action: call-service
  1164. service: input_select.select_option
  1165. service_data:
  1166. entity_id: input_select.radio_xiaomi_speaker_network
  1167. option: FGdeep
  1168. state:
  1169. - value: FGdeep
  1170. styles:
  1171. entity_picture:
  1172. - filter: opacity(100%)
  1173. - type: 'custom:button-card'
  1174. aspect_ratio: 1/1
  1175. size: 98%
  1176. entity_picture: /local/img/radio/FGunder.png
  1177. styles:
  1178. entity_picture:
  1179. - filter: opacity(50%)
  1180. entity: input_select.radio_xiaomi_speaker_network
  1181. show_entity_picture: true
  1182. show_state: false
  1183. show_name: false
  1184. hold_action:
  1185. action: call-service
  1186. service: input_select.select_option
  1187. service_data:
  1188. entity_id: input_select.radio_xiaomi_speaker_network
  1189. option: Aucune
  1190. tap_action:
  1191. action: call-service
  1192. service: input_select.select_option
  1193. service_data:
  1194. entity_id: input_select.radio_xiaomi_speaker_network
  1195. option: FGunder
  1196. state:
  1197. - value: FGunder
  1198. styles:
  1199. entity_picture:
  1200. - filter: opacity(100%)
  1201. - type: 'custom:button-card'
  1202. aspect_ratio: 1/1
  1203. entity: input_select.radio_xiaomi_speaker_network
  1204. entity_picture: /local/img/radio/MTI.png
  1205. styles:
  1206. entity_picture:
  1207. - filter: opacity(50%)
  1208. size: 98%
  1209. show_entity_picture: true
  1210. show_state: false
  1211. show_name: false
  1212. hold_action:
  1213. action: call-service
  1214. service: input_select.select_option
  1215. service_data:
  1216. entity_id: input_select.radio_xiaomi_speaker_network
  1217. option: Aucune
  1218. tap_action:
  1219. action: call-service
  1220. service: input_select.select_option
  1221. service_data:
  1222. entity_id: input_select.radio_xiaomi_speaker_network
  1223. option: MTI
  1224. state:
  1225. - value: MTI
  1226. styles:
  1227. entity_picture:
  1228. - filter: opacity(100%)
  1229. type: horizontal-stack
  1230. conditions:
  1231. - entity: media_player.enceinte_mi_salle_de_bain
  1232. state_not: 'off'
  1233. type: conditional
  1234. - card:
  1235. cards:
  1236. - type: 'custom:button-card'
  1237. aspect_ratio: 1/1
  1238. entity: input_select.radio_xiaomi_speaker_network
  1239. entity_picture: /local/img/radio/Virgin.png
  1240. styles:
  1241. entity_picture:
  1242. - filter: opacity(50%)
  1243. size: 98%
  1244. show_entity_picture: true
  1245. show_name: false
  1246. show_state: false
  1247. hold_action:
  1248. action: call-service
  1249. service: input_select.select_option
  1250. service_data:
  1251. entity_id: input_select.radio_xiaomi_speaker_network
  1252. option: Aucune
  1253. tap_action:
  1254. action: call-service
  1255. service: input_select.select_option
  1256. service_data:
  1257. entity_id: input_select.radio_xiaomi_speaker_network
  1258. option: Virgin
  1259. state:
  1260. - value: Virgin
  1261. styles:
  1262. entity_picture:
  1263. - filter: opacity(100%)
  1264. - type: 'custom:button-card'
  1265. color_type: blank-card
  1266. - type: 'custom:button-card'
  1267. color_type: blank-card
  1268. - type: 'custom:button-card'
  1269. color_type: blank-card
  1270. - type: 'custom:button-card'
  1271. color_type: blank-card
  1272. - type: 'custom:button-card'
  1273. color_type: blank-card
  1274. type: horizontal-stack
  1275. conditions:
  1276. - entity: media_player.enceinte_mi_salle_de_bain
  1277. state_not: 'off'
  1278. type: conditional
  1279. - type: entities
  1280. entities:
  1281. - label: Chambre Noham
  1282. type: section
  1283. - artwork: material
  1284. entity: media_player.google_home_noham
  1285. group: true
  1286. hide_controls: false
  1287. hide_volume: false
  1288. power_color: true
  1289. show_progress: true
  1290. toggle_power: toggle
  1291. icon: 'mdi:google-home'
  1292. max_volume: 100
  1293. min_volume: 1
  1294. name: Google Home
  1295. shortcuts:
  1296. buttons:
  1297. - data:
  1298. entity_id: media_player.google_home_noham
  1299. icon: 'mdi:volume-minus'
  1300. id: media_player.volume_down
  1301. type: service
  1302. - data:
  1303. entity_id: media_player.google_home_noham
  1304. icon: 'mdi:volume-plus'
  1305. id: media_player.volume_up
  1306. type: service
  1307. columns: 2
  1308. hide_when_off: true
  1309. type: 'custom:mini-media-player'
  1310. - card:
  1311. cards:
  1312. - type: 'custom:button-card'
  1313. aspect_ratio: 1/1
  1314. entity: input_select.radio_station_noham
  1315. styles:
  1316. entity_picture:
  1317. - filter: opacity(50%)
  1318. size: 98%
  1319. show_entity_picture: true
  1320. show_name: false
  1321. show_state: false
  1322. entity_picture: /local/img/radio/NRJ.png
  1323. hold_action:
  1324. action: call-service
  1325. service: input_select.select_option
  1326. service_data:
  1327. entity_id: input_select.radio_station_noham
  1328. option: Aucune
  1329. tap_action:
  1330. action: call-service
  1331. service: input_select.select_option
  1332. service_data:
  1333. entity_id: input_select.radio_station_noham
  1334. option: NRJ
  1335. state:
  1336. - value: NRJ
  1337. styles:
  1338. entity_picture:
  1339. - filter: opacity(100%)
  1340. - type: 'custom:button-card'
  1341. aspect_ratio: 1/1
  1342. entity: input_select.radio_station_noham
  1343. styles:
  1344. entity_picture:
  1345. - filter: opacity(50%)
  1346. size: 98%
  1347. show_entity_picture: true
  1348. show_state: false
  1349. show_name: false
  1350. entity_picture: /local/img/radio/Fun.png
  1351. hold_action:
  1352. action: call-service
  1353. service: input_select.select_option
  1354. service_data:
  1355. entity_id: input_select.radio_station_noham
  1356. option: Aucune
  1357. tap_action:
  1358. action: call-service
  1359. service: input_select.select_option
  1360. service_data:
  1361. entity_id: input_select.radio_station_noham
  1362. option: Fun
  1363. state:
  1364. - value: Fun
  1365. styles:
  1366. entity_picture:
  1367. - filter: opacity(100%)
  1368. - type: 'custom:button-card'
  1369. aspect_ratio: 1/1
  1370. entity: input_select.radio_station_noham
  1371. styles:
  1372. entity_picture:
  1373. - filter: opacity(50%)
  1374. size: 98%
  1375. show_entity_picture: true
  1376. show_state: false
  1377. show_name: false
  1378. entity_picture: /local/img/radio/BFM.png
  1379. hold_action:
  1380. action: call-service
  1381. service: input_select.select_option
  1382. service_data:
  1383. entity_id: input_select.radio_station_noham
  1384. option: Aucune
  1385. tap_action:
  1386. action: call-service
  1387. service: input_select.select_option
  1388. service_data:
  1389. entity_id: input_select.radio_station_noham
  1390. option: BFM
  1391. state:
  1392. - value: BFM
  1393. styles:
  1394. entity_picture:
  1395. - filter: opacity(100%)
  1396. - type: 'custom:button-card'
  1397. aspect_ratio: 1/1
  1398. styles:
  1399. entity_picture:
  1400. - filter: opacity(50%)
  1401. size: 98%
  1402. entity: input_select.radio_station_noham
  1403. show_entity_picture: true
  1404. show_state: false
  1405. show_name: false
  1406. entity_picture: /local/img/radio/Skyrock.png
  1407. hold_action:
  1408. action: call-service
  1409. service: input_select.select_option
  1410. service_data:
  1411. entity_id: input_select.radio_station_noham
  1412. option: Aucune
  1413. tap_action:
  1414. action: call-service
  1415. service: input_select.select_option
  1416. service_data:
  1417. entity_id: input_select.radio_station_noham
  1418. option: Skyrock
  1419. state:
  1420. - value: Skyrock
  1421. styles:
  1422. entity_picture:
  1423. - filter: opacity(100%)
  1424. - type: 'custom:button-card'
  1425. aspect_ratio: 1/1
  1426. styles:
  1427. entity_picture:
  1428. - filter: opacity(50%)
  1429. size: 98%
  1430. entity: input_select.radio_station_noham
  1431. show_entity_picture: true
  1432. show_state: false
  1433. show_name: false
  1434. entity_picture: /local/img/radio/Nostalgie.png
  1435. hold_action:
  1436. action: call-service
  1437. service: input_select.select_option
  1438. service_data:
  1439. entity_id: input_select.radio_station_noham
  1440. option: Aucune
  1441. tap_action:
  1442. action: call-service
  1443. service: input_select.select_option
  1444. service_data:
  1445. entity_id: input_select.radio_station_noham
  1446. option: Nostalgie
  1447. state:
  1448. - value: Nostalgie
  1449. styles:
  1450. entity_picture:
  1451. - filter: opacity(100%)
  1452. - type: 'custom:button-card'
  1453. aspect_ratio: 1/1
  1454. entity: input_select.radio_station_noham
  1455. styles:
  1456. entity_picture:
  1457. - filter: opacity(50%)
  1458. size: 98%
  1459. show_entity_picture: true
  1460. show_state: false
  1461. show_name: false
  1462. entity_picture: /local/img/radio/Hitsradio.png
  1463. hold_action:
  1464. action: call-service
  1465. service: input_select.select_option
  1466. service_data:
  1467. entity_id: input_select.radio_station_noham
  1468. option: Aucune
  1469. tap_action:
  1470. action: call-service
  1471. service: input_select.select_option
  1472. service_data:
  1473. entity_id: input_select.radio_station_noham
  1474. option: Hitsradio
  1475. state:
  1476. - value: Hitsradio
  1477. styles:
  1478. entity_picture:
  1479. - filter: opacity(100%)
  1480. type: horizontal-stack
  1481. conditions:
  1482. - entity: media_player.google_home_noham
  1483. state_not: 'off'
  1484. type: conditional
  1485. - card:
  1486. cards:
  1487. - type: 'custom:button-card'
  1488. aspect_ratio: 1/1
  1489. entity: input_select.radio_station_noham
  1490. styles:
  1491. entity_picture:
  1492. - filter: opacity(50%)
  1493. size: 98%
  1494. show_entity_picture: true
  1495. show_name: false
  1496. show_state: false
  1497. entity_picture: /local/img/radio/Scoop.png
  1498. hold_action:
  1499. action: call-service
  1500. service: input_select.select_option
  1501. service_data:
  1502. entity_id: input_select.radio_station_noham
  1503. option: Aucune
  1504. tap_action:
  1505. action: call-service
  1506. service: input_select.select_option
  1507. service_data:
  1508. entity_id: input_select.radio_station_noham
  1509. option: Scoop
  1510. state:
  1511. - value: Scoop
  1512. styles:
  1513. entity_picture:
  1514. - filter: opacity(100%)
  1515. - type: 'custom:button-card'
  1516. aspect_ratio: 1/1
  1517. entity: input_select.radio_station_noham
  1518. styles:
  1519. entity_picture:
  1520. - filter: opacity(50%)
  1521. size: 98%
  1522. show_entity_picture: true
  1523. show_state: false
  1524. show_name: false
  1525. entity_picture: /local/img/radio/FG.png
  1526. hold_action:
  1527. action: call-service
  1528. service: input_select.select_option
  1529. service_data:
  1530. entity_id: input_select.radio_station_noham
  1531. option: Aucune
  1532. tap_action:
  1533. action: call-service
  1534. service: input_select.select_option
  1535. service_data:
  1536. entity_id: input_select.radio_station_noham
  1537. option: FG
  1538. state:
  1539. - value: FG
  1540. styles:
  1541. entity_picture:
  1542. - filter: opacity(100%)
  1543. - type: 'custom:button-card'
  1544. aspect_ratio: 1/1
  1545. entity: input_select.radio_station_noham
  1546. entity_picture: /local/img/radio/FGchic.png
  1547. styles:
  1548. entity_picture:
  1549. - filter: opacity(50%)
  1550. size: 98%
  1551. show_entity_picture: true
  1552. show_state: false
  1553. show_name: false
  1554. hold_action:
  1555. action: call-service
  1556. service: input_select.select_option
  1557. service_data:
  1558. entity_id: input_select.radio_station_noham
  1559. option: Aucune
  1560. tap_action:
  1561. action: call-service
  1562. service: input_select.select_option
  1563. service_data:
  1564. entity_id: input_select.radio_station_noham
  1565. option: FGchic
  1566. state:
  1567. - value: FGchic
  1568. styles:
  1569. entity_picture:
  1570. - filter: opacity(100%)
  1571. - type: 'custom:button-card'
  1572. aspect_ratio: 1/1
  1573. size: 98%
  1574. entity: input_select.radio_station_noham
  1575. entity_picture: /local/img/radio/FGdeep.png
  1576. styles:
  1577. entity_picture:
  1578. - filter: opacity(50%)
  1579. show_entity_picture: true
  1580. show_state: false
  1581. show_name: false
  1582. hold_action:
  1583. action: call-service
  1584. service: input_select.select_option
  1585. service_data:
  1586. entity_id: input_select.radio_station_noham
  1587. option: Aucune
  1588. tap_action:
  1589. action: call-service
  1590. service: input_select.select_option
  1591. service_data:
  1592. entity_id: input_select.radio_station_noham
  1593. option: FGdeep
  1594. state:
  1595. - value: FGdeep
  1596. styles:
  1597. entity_picture:
  1598. - filter: opacity(100%)
  1599. - type: 'custom:button-card'
  1600. aspect_ratio: 1/1
  1601. size: 98%
  1602. entity_picture: /local/img/radio/FGunder.png
  1603. styles:
  1604. entity_picture:
  1605. - filter: opacity(50%)
  1606. entity: input_select.radio_station_noham
  1607. show_entity_picture: true
  1608. show_state: false
  1609. show_name: false
  1610. hold_action:
  1611. action: call-service
  1612. service: input_select.select_option
  1613. service_data:
  1614. entity_id: input_select.radio_station_noham
  1615. option: Aucune
  1616. tap_action:
  1617. action: call-service
  1618. service: input_select.select_option
  1619. service_data:
  1620. entity_id: input_select.radio_station_noham
  1621. option: FGunder
  1622. state:
  1623. - value: FGunder
  1624. styles:
  1625. entity_picture:
  1626. - filter: opacity(100%)
  1627. - type: 'custom:button-card'
  1628. aspect_ratio: 1/1
  1629. entity: input_select.radio_station_noham
  1630. entity_picture: /local/img/radio/MTI.png
  1631. styles:
  1632. entity_picture:
  1633. - filter: opacity(50%)
  1634. size: 98%
  1635. show_entity_picture: true
  1636. show_state: false
  1637. show_name: false
  1638. hold_action:
  1639. action: call-service
  1640. service: input_select.select_option
  1641. service_data:
  1642. entity_id: input_select.radio_station_noham
  1643. option: Aucune
  1644. tap_action:
  1645. action: call-service
  1646. service: input_select.select_option
  1647. service_data:
  1648. entity_id: input_select.radio_station_noham
  1649. option: MTI
  1650. state:
  1651. - value: MTI
  1652. styles:
  1653. entity_picture:
  1654. - filter: opacity(100%)
  1655. type: horizontal-stack
  1656. conditions:
  1657. - entity: media_player.google_home_noham
  1658. state_not: 'off'
  1659. type: conditional
  1660. - card:
  1661. cards:
  1662. - type: 'custom:button-card'
  1663. aspect_ratio: 1/1
  1664. entity: input_select.radio_station_noham
  1665. entity_picture: /local/img/radio/Virgin.png
  1666. styles:
  1667. entity_picture:
  1668. - filter: opacity(50%)
  1669. size: 98%
  1670. show_entity_picture: true
  1671. show_name: false
  1672. show_state: false
  1673. hold_action:
  1674. action: call-service
  1675. service: input_select.select_option
  1676. service_data:
  1677. entity_id: input_select.radio_station_noham
  1678. option: Aucune
  1679. tap_action:
  1680. action: call-service
  1681. service: input_select.select_option
  1682. service_data:
  1683. entity_id: input_select.radio_station_noham
  1684. option: Virgin
  1685. state:
  1686. - value: Virgin
  1687. styles:
  1688. entity_picture:
  1689. - filter: opacity(100%)
  1690. - type: 'custom:button-card'
  1691. color_type: blank-card
  1692. - type: 'custom:button-card'
  1693. color_type: blank-card
  1694. - type: 'custom:button-card'
  1695. color_type: blank-card
  1696. - type: 'custom:button-card'
  1697. color_type: blank-card
  1698. - type: 'custom:button-card'
  1699. color_type: blank-card
  1700. type: horizontal-stack
  1701. conditions:
  1702. - entity: media_player.google_home_noham
  1703. state_not: 'off'
  1704. type: conditional
  1705. type: 'custom:vertical-stack-in-card'
  1706.  
Add Comment
Please, Sign In to add comment