vejvik

TV ovladač

Feb 2nd, 2023 (edited)
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.39 KB | None | 0 0
  1. cards:
  2. - cards:
  3. - icon: mdi:television-box
  4. tap_action:
  5. action: call-service
  6. service: media_player.select_source
  7. service_data:
  8. source: HDMI 4
  9. entity_id: media_player.55pus7303_12
  10. type: custom:button-card
  11. styles:
  12. icon:
  13. - color: blue
  14. card:
  15. - height: 85px
  16. name: Satelit
  17. hold_action:
  18. action: none
  19. - show_name: true
  20. show_icon: true
  21. icon: mdi:kodi
  22. show_state: false
  23. tap_action:
  24. action: call-service
  25. service: media_player.play_media
  26. service_data:
  27. media_content_id: org.xbmc.kodi.Splash-org.xbmc.kodi
  28. media_content_type: app
  29. entity_id: media_player.55pus7303_12
  30. type: custom:button-card
  31. styles:
  32. icon:
  33. - color: aqua
  34. card:
  35. - height: 85px
  36. hold_action:
  37. action: none
  38. name: Kodi
  39. - show_name: true
  40. show_icon: true
  41. icon: mdi:youtube
  42. show_state: false
  43. tap_action:
  44. action: call-service
  45. service: media_player.play_media
  46. service_data:
  47. media_content_id: >-
  48. com.google.android.apps.youtube.tv.activity.ShellActivity-com.google.android.youtube.tv
  49. media_content_type: app
  50. entity_id: media_player.55pus7303_12
  51. type: custom:button-card
  52. styles:
  53. icon:
  54. - color: red
  55. card:
  56. - height: 85px
  57. hold_action:
  58. action: none
  59. name: Youtube
  60. type: horizontal-stack
  61. - cards:
  62. - icon: mdi:television-guide
  63. show_icon: true
  64. show_name: false
  65. show_state: false
  66. tap_action:
  67. action: call-service
  68. service: remote.send_command
  69. service_data:
  70. command: TvGuide
  71. target:
  72. entity_id: remote.55pus7303_12_remote
  73. type: button
  74. hold_action:
  75. action: none
  76. - icon: mdi:arrow-up-drop-circle
  77. show_icon: true
  78. show_name: false
  79. show_state: false
  80. tap_action:
  81. action: call-service
  82. service: remote.send_command
  83. service_data:
  84. command: CursorUp
  85. entity_id: remote.55pus7303_12_remote
  86. type: custom:button-card
  87. styles:
  88. card:
  89. - background-color: grey
  90. - height: 85px
  91. - show_name: false
  92. show_icon: true
  93. icon: mdi:exit-to-app
  94. tap_action:
  95. action: call-service
  96. service: remote.send_command
  97. target:
  98. entity_id: remote.55pus7303_12_remote
  99. data:
  100. command: Exit
  101. type: button
  102. hold_action:
  103. action: none
  104. type: horizontal-stack
  105. - cards:
  106. - type: custom:button-card
  107. styles:
  108. card:
  109. - background-color: grey
  110. - height: 85px
  111. icon: mdi:arrow-left-drop-circle
  112. show_icon: true
  113. show_name: false
  114. show_state: false
  115. tap_action:
  116. action: call-service
  117. service: remote.send_command
  118. service_data:
  119. command: CursorLeft
  120. entity_id: remote.55pus7303_12_remote
  121. hold_action:
  122. action: none
  123. - name: OK
  124. show_icon: true
  125. show_name: false
  126. show_state: false
  127. tap_action:
  128. action: call-service
  129. service: remote.send_command
  130. service_data:
  131. command: Confirm
  132. entity_id: remote.55pus7303_12_remote
  133. type: custom:button-card
  134. styles:
  135. card:
  136. - background-color: grey
  137. - height: 85px
  138. icon:
  139. - color: DarkSlateGrey
  140. hold_action:
  141. action: none
  142. icon: mdi:circle-slice-8
  143. - icon: mdi:arrow-right-drop-circle
  144. show_icon: true
  145. show_name: false
  146. show_state: false
  147. tap_action:
  148. action: call-service
  149. service: remote.send_command
  150. service_data:
  151. command: CursorRight
  152. entity_id: remote.55pus7303_12_remote
  153. type: custom:button-card
  154. styles:
  155. card:
  156. - background-color: grey
  157. - height: 85px
  158. hold_action:
  159. action: none
  160. type: horizontal-stack
  161. - cards:
  162. - show_name: false
  163. show_icon: true
  164. show_state: false
  165. tap_action:
  166. action: call-service
  167. service: remote.send_command
  168. data:
  169. command: SmartTV
  170. target:
  171. entity_id: remote.55pus7303_12_remote
  172. type: button
  173. hold_action:
  174. action: none
  175. icon: mdi:menu
  176. - icon: mdi:arrow-down-drop-circle
  177. show_icon: true
  178. show_name: false
  179. show_state: false
  180. tap_action:
  181. action: call-service
  182. service: remote.send_command
  183. service_data:
  184. command: CursorDown
  185. entity_id: remote.55pus7303_12_remote
  186. type: custom:button-card
  187. styles:
  188. card:
  189. - background-color: grey
  190. - height: 85px
  191. - show_name: false
  192. show_icon: true
  193. icon: mdi:restore
  194. show_state: false
  195. tap_action:
  196. action: call-service
  197. service: remote.send_command
  198. target:
  199. entity_id: remote.55pus7303_12_remote
  200. data:
  201. command: Back
  202. type: button
  203. type: horizontal-stack
  204. - cards:
  205. - show_name: true
  206. show_icon: true
  207. icon: mdi:volume-plus
  208. show_state: false
  209. tap_action:
  210. action: call-service
  211. service: remote.send_command
  212. target:
  213. entity_id:
  214. - remote.55pus7303_12_remote
  215. data:
  216. command: VolumeUp
  217. type: button
  218. - show_name: false
  219. show_icon: true
  220. show_state: true
  221. tap_action:
  222. action: call-service
  223. service: remote.send_command
  224. data:
  225. command: Mute
  226. target:
  227. entity_id: remote.55pus7303_12_remote
  228. type: button
  229. hold_action:
  230. action: none
  231. icon: mdi:volume-off
  232. - show_name: false
  233. show_icon: true
  234. icon: mdi:plus-circle-outline
  235. show_state: false
  236. tap_action:
  237. action: call-service
  238. service: remote.send_command
  239. target:
  240. entity_id:
  241. - remote.55pus7303_12_remote
  242. data:
  243. command: ChannelStepUp
  244. type: button
  245. type: horizontal-stack
  246. - cards:
  247. - show_name: false
  248. show_icon: true
  249. icon: mdi:volume-minus
  250. show_state: false
  251. tap_action:
  252. action: call-service
  253. service: remote.send_command
  254. data:
  255. command: VolumeDown
  256. target:
  257. entity_id:
  258. - remote.55pus7303_12_remote
  259. type: button
  260. - icon: mdi:import
  261. tap_action:
  262. action: call-service
  263. service: remote.send_command
  264. service_data:
  265. command: Source
  266. target:
  267. entity_id: remote.55pus7303_12_remote
  268. type: button
  269. hold_action:
  270. action: none
  271. - show_name: false
  272. show_icon: true
  273. icon: mdi:minus-circle-outline
  274. show_state: false
  275. tap_action:
  276. action: call-service
  277. service: remote.send_command
  278. service_data:
  279. command: ChannelStepDown
  280. target:
  281. entity_id: remote.55pus7303_12_remote
  282. type: button
  283. type: horizontal-stack
  284. - type: horizontal-stack
  285. cards:
  286. - show_name: false
  287. show_icon: true
  288. type: button
  289. tap_action:
  290. action: call-service
  291. service: remote.send_command
  292. data:
  293. command: Digit1
  294. target:
  295. entity_id: remote.55pus7303_12_remote
  296. icon: mdi:numeric-1-box-outline
  297. icon_height: 50px
  298. - show_name: false
  299. show_icon: true
  300. type: button
  301. tap_action:
  302. action: call-service
  303. service: remote.send_command
  304. data:
  305. command: Digit2
  306. target:
  307. entity_id: remote.55pus7303_12_remote
  308. icon: mdi:numeric-2-box-outline
  309. icon_height: 50px
  310. - show_name: false
  311. show_icon: true
  312. type: button
  313. tap_action:
  314. action: call-service
  315. service: remote.send_command
  316. data:
  317. command: Digit3
  318. target:
  319. entity_id: remote.55pus7303_12_remote
  320. icon: mdi:numeric-3-box-outline
  321. icon_height: 50px
  322. - type: horizontal-stack
  323. cards:
  324. - show_name: false
  325. show_icon: true
  326. type: button
  327. tap_action:
  328. action: call-service
  329. service: remote.send_command
  330. data:
  331. command: Digit4
  332. target:
  333. entity_id: remote.55pus7303_12_remote
  334. icon: mdi:numeric-4-box-outline
  335. icon_height: 50px
  336. - show_name: false
  337. show_icon: true
  338. type: button
  339. tap_action:
  340. action: call-service
  341. service: remote.send_command
  342. data:
  343. command: Digit5
  344. target:
  345. entity_id: remote.55pus7303_12_remote
  346. icon: mdi:numeric-5-box-outline
  347. icon_height: 50px
  348. - show_name: false
  349. show_icon: true
  350. type: button
  351. tap_action:
  352. action: call-service
  353. service: remote.send_command
  354. data:
  355. command: Digit6
  356. target:
  357. entity_id: remote.55pus7303_12_remote
  358. icon: mdi:numeric-6-box-outline
  359. icon_height: 50px
  360. - type: horizontal-stack
  361. cards:
  362. - show_name: false
  363. show_icon: true
  364. type: button
  365. tap_action:
  366. action: call-service
  367. service: remote.send_command
  368. data:
  369. command: Digit7
  370. target:
  371. entity_id: remote.55pus7303_12_remote
  372. icon: mdi:numeric-7-box-outline
  373. icon_height: 50px
  374. - show_name: false
  375. show_icon: true
  376. type: button
  377. tap_action:
  378. action: call-service
  379. service: remote.send_command
  380. data:
  381. command: Digit8
  382. target:
  383. entity_id: remote.55pus7303_12_remote
  384. icon: mdi:numeric-8-box-outline
  385. icon_height: 50px
  386. - show_name: false
  387. show_icon: true
  388. type: button
  389. tap_action:
  390. action: call-service
  391. service: remote.send_command
  392. data:
  393. command: Digit9
  394. target:
  395. entity_id: remote.55pus7303_12_remote
  396. icon: mdi:numeric-9-box-outline
  397. icon_height: 50px
  398. - type: horizontal-stack
  399. cards:
  400. - show_name: true
  401. show_icon: false
  402. type: button
  403. icon_height: 50px
  404. - show_name: false
  405. show_icon: true
  406. type: button
  407. tap_action:
  408. action: call-service
  409. service: remote.send_command
  410. data:
  411. command: Digit0
  412. target:
  413. entity_id: remote.55pus7303_12_remote
  414. icon: mdi:numeric-0-box-outline
  415. icon_height: 50px
  416. - show_name: false
  417. show_icon: false
  418. type: button
  419. icon_height: 50px
  420. - type: horizontal-stack
  421. cards:
  422. - show_name: true
  423. show_icon: true
  424. type: custom:button-card
  425. styles:
  426. icon:
  427. - color: darkred
  428. card:
  429. - background-color: red
  430. tap_action:
  431. action: call-service
  432. service: remote.send_command
  433. service_data:
  434. command: RedColour
  435. entity_id: remote.55pus7303_12_remote
  436. icon: mdi:crop-square
  437. - show_name: true
  438. show_icon: true
  439. type: custom:button-card
  440. styles:
  441. icon:
  442. - color: darkgreen
  443. card:
  444. - background-color: green
  445. tap_action:
  446. action: call-service
  447. service: remote.send_command
  448. service_data:
  449. command: GreenColour
  450. entity_id: remote.55pus7303_12_remote
  451. icon: mdi:crop-square
  452. - show_name: true
  453. show_icon: true
  454. type: custom:button-card
  455. styles:
  456. icon:
  457. - color: darkyellow
  458. card:
  459. - background-color: yellow
  460. tap_action:
  461. action: call-service
  462. service: remote.send_command
  463. service_data:
  464. command: YellowColour
  465. entity_id: remote.55pus7303_12_remote
  466. icon: mdi:crop-square
  467. - show_name: false
  468. show_icon: true
  469. type: custom:button-card
  470. styles:
  471. icon:
  472. - color: darkblue
  473. card:
  474. - background-color: blue
  475. tap_action:
  476. action: call-service
  477. service: remote.send_command
  478. service_data:
  479. command: BlueColour
  480. entity_id: remote.55pus7303_12_remote
  481. icon: mdi:crop-square
  482. type: vertical-stack
  483.  
Tags: TV ovladač
Advertisement
Add Comment
Please, Sign In to add comment