Advertisement
Guest User

Pimatic Denon AVR Control Devices

a guest
Oct 23rd, 2015
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 KB | None | 0 0
  1. {
  2. "class": "DummyDimmer",
  3. "id": "denon-volume-slider",
  4. "name": "Denon Master Volume"
  5. },
  6. {
  7. "id": "denon-mainstate",
  8. "class": "VariablesDevice",
  9. "name": "Denon Main State",
  10. "xAttributeOptions": [
  11. {
  12. "name": "volume",
  13. "displaySparkline": false
  14. }
  15. ],
  16. "variables": [
  17. {
  18. "name": "power",
  19. "type": "string",
  20. "expression": "$denon-powerstatus.denonpwrstate",
  21. "acronym": "Power"
  22. },
  23. {
  24. "name": "volume",
  25. "type": "number",
  26. "expression": "80+$denon-volume-status.denonvolstate",
  27. "acronym": "Volume"
  28. },
  29. {
  30. "name": "input",
  31. "type": "string",
  32. "expression": "$denon-input-status.denoninputstate",
  33. "acronym": "Input"
  34. },
  35. {
  36. "name": "repeat",
  37. "type": "string",
  38. "expression": "$denon-repeat-status.denonrptstate",
  39. "acronym": "Repeat"
  40. },
  41. {
  42. "name": "random",
  43. "type": "string",
  44. "expression": "$denon-random-status.denonrndstate",
  45. "acronym": "Random"
  46. }
  47. ]
  48. },
  49. {
  50. "id": "denon-repeat-status",
  51. "name": "Denon Repeat Status",
  52. "class": "ShellSensor",
  53. "attributeName": "denonrptstate",
  54. "attributeType": "string",
  55. "command": "curl -s http://192.168.178.67/goform/formNetAudio_StatusXml.xml | grep NetAudioRandom | sed 's/<NetAudioRandom><value>//' | sed 's/<\\/value><\\/NetAudioRandom>//'",
  56. "interval": 5000
  57. },
  58. {
  59. "id": "denon-random-status",
  60. "name": "Denon Random Status",
  61. "class": "ShellSensor",
  62. "attributeName": "denonrndstate",
  63. "attributeType": "string",
  64. "command": "curl -s http://192.168.178.67/goform/formNetAudio_StatusXml.xml | grep NetAudioRepeat | sed 's/<NetAudioRepeat><value>//' | sed 's/<\\/value><\\/NetAudioRepeat>//'",
  65. "interval": 5000
  66. },
  67. {
  68. "id": "denon-powerstatus",
  69. "name": "Denon Power Status",
  70. "class": "ShellSensor",
  71. "attributeName": "denonpwrstate",
  72. "attributeType": "string",
  73. "command": "curl -s http://192.168.178.67/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n3 | tail -n1 | sed 's/<Power><value>//' | sed 's/<\\/value><\\/Power>//'",
  74. "interval": 5000
  75. },
  76. {
  77. "id": "denon-volume-status",
  78. "name": "Denon Volume Status",
  79. "class": "ShellSensor",
  80. "attributeName": "denonvolstate",
  81. "attributeType": "number",
  82. "command": "curl -s http://192.168.178.67/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n6 | tail -n1 | sed 's/<MasterVolume><value>//' | sed 's/<\\/value><\\/MasterVolume>//'",
  83. "interval": 5000
  84. },
  85. {
  86. "id": "denon-input-status",
  87. "name": "Denon Input Status",
  88. "class": "ShellSensor",
  89. "attributeName": "denoninputstate",
  90. "attributeType": "string",
  91. "command": "curl -s http://192.168.178.67/goform/formMainZone_MainZoneXmlStatusLite.xml | head -n4 | tail -n -1 | sed 's/<InputFuncSelect><value>//' | sed 's/<\\/value><\\/InputFuncSelect>//'",
  92. "interval": 5000
  93. },
  94. {
  95. "id": "denon-status3",
  96. "name": "Album",
  97. "class": "ShellSensor",
  98. "attributeName": "line3",
  99. "attributeType": "string",
  100. "command": "curl -s http://192.168.178.67/goform/formNetAudio_StatusXml.xml | head -n21 | tail -n1 | sed 's/<value>//' | sed 's/<\\/value>//'",
  101. "interval": 5000
  102. },
  103. {
  104. "id": "denon-status2",
  105. "name": "Station / Artist",
  106. "class": "ShellSensor",
  107. "attributeName": "line2",
  108. "attributeType": "string",
  109. "command": "curl -s http://192.168.178.67/goform/formNetAudio_StatusXml.xml | head -n19 | tail -n1 | sed 's/<value>//' | sed 's/<\\/value>//'",
  110. "interval": 5000
  111. },
  112. {
  113. "id": "denon-status1",
  114. "name": "Station / Title",
  115. "class": "ShellSensor",
  116. "attributeName": "line1",
  117. "attributeType": "string",
  118. "command": "curl -s http://192.168.178.67/goform/formNetAudio_StatusXml.xml | head -n18 | tail -n1 | sed 's/<value>//' | sed 's/<\\/value>//'",
  119. "interval": 5000
  120. },
  121. {
  122. "class": "iframeDevice",
  123. "id": "denonwebradio",
  124. "name": "Denon Music Information",
  125. "url": "http://192.168.178.67/NetAudio/art.asp-jpg",
  126. "width": 200,
  127. "height": 350,
  128. "scrolling": "no",
  129. "scale": 1.2,
  130. "reload": 10
  131. },
  132. {
  133. "id": "denon5",
  134. "name": "Denon Controls",
  135. "class": "ButtonsDevice",
  136. "buttons": [
  137. {
  138. "id": "denon-pageup",
  139. "text": "P↑",
  140. "label": "Page up"
  141. },
  142. {
  143. "id": "denon-pagedown",
  144. "text": "P↓",
  145. "label": "Page down"
  146. },
  147. {
  148. "id": "denon-up",
  149. "text": "▲",
  150. "label": "Move Cursor up"
  151. },
  152. {
  153. "id": "denon-down",
  154. "text": "▼",
  155. "label": "Move Cursor down"
  156. },
  157. {
  158. "id": "denon-left",
  159. "text": "◄",
  160. "label": "Move Cursor right"
  161. },
  162. {
  163. "id": "denon-right",
  164. "text": "►",
  165. "label": "Move Cursor left"
  166. },
  167. {
  168. "id": "denon-enter",
  169. "text": "Ent",
  170. "label": "Enter"
  171. },
  172. {
  173. "id": "denon-back",
  174. "text": "Bck",
  175. "label": "Back"
  176. },
  177. {
  178. "id": "denon-option",
  179. "text": "Opt",
  180. "label": "Options"
  181. },
  182. {
  183. "id": "denon-info",
  184. "text": "Inf",
  185. "label": "Info"
  186. }
  187. ]
  188. },
  189. {
  190. "id": "denon3",
  191. "name": "Denon AVR Player",
  192. "class": "ButtonsDevice",
  193. "buttons": [
  194. {
  195. "id": "denon-skipback",
  196. "text": "<<",
  197. "label": "Skip back"
  198. },
  199. {
  200. "id": "denon-play",
  201. "text": "║►",
  202. "label": "Play Pause"
  203. },
  204. {
  205. "id": "denon-stop",
  206. "text": "■",
  207. "label": "Stop"
  208. },
  209. {
  210. "id": "denon-skipforward",
  211. "text": ">>",
  212. "label": "Skip forward"
  213. },
  214. {
  215. "id": "denon-random",
  216. "text": "Rnd",
  217. "label": "Toggle Random"
  218. },
  219. {
  220. "id": "denon-repeat",
  221. "text": "Rpt",
  222. "label": "Toggle Repeat"
  223. },
  224. {
  225. "id": "denon-copy-title",
  226. "text": "Cpy",
  227. "label": "Copy Title and Artist to file"
  228. }
  229. ]
  230. },
  231. {
  232. "id": "denon2",
  233. "name": "Denon AVR Main",
  234. "class": "ButtonsDevice",
  235. "buttons": [
  236. {
  237. "id": "denon-poweron",
  238. "text": "Pwr On",
  239. "label": "Power on"
  240. },
  241. {
  242. "id": "denon-poweroff",
  243. "text": "Pwr Off",
  244. "label": "Power off"
  245. },
  246. {
  247. "id": "denon-sat",
  248. "text": "Sat",
  249. "label": "Video Input Sat"
  250. },
  251. {
  252. "id": "denon-ps3",
  253. "text": "PS3",
  254. "label": "Video Input MPlayer"
  255. },
  256. {
  257. "id": "denon-mp3",
  258. "text": "MP3",
  259. "label": "Video Input Network"
  260. },
  261. {
  262. "id": "denon-radio",
  263. "text": "iRadio",
  264. "label": "Video Input Internet Radio"
  265. }
  266. ]
  267. },
  268. {
  269. "id": "denon1",
  270. "name": "Denon AVR Vol.",
  271. "class": "ButtonsDevice",
  272. "buttons": [
  273. {
  274. "id": "denon-voldown",
  275. "text": "Vol-",
  276. "label": "Volume down"
  277. },
  278. {
  279. "id": "denon-volup",
  280. "text": "Vol+",
  281. "label": "Volume up"
  282. },
  283. {
  284. "id": "denon-vol15",
  285. "text": "15",
  286. "label": "Set Volume to 15"
  287. },
  288. {
  289. "id": "denon-vol30",
  290. "text": "30",
  291. "label": "Set Volume to 30"
  292. },
  293. {
  294. "id": "denon-vol45",
  295. "text": "45",
  296. "label": "Set Volume to 45"
  297. },
  298. {
  299. "id": "denon-mute",
  300. "text": "Mute On"
  301. },
  302. {
  303. "id": "denon-unmute",
  304. "text": "Mute Off"
  305. }
  306. ]
  307. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement