This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Yamaha Extended Control
#2
Use this as a starting point. response variable should contain your HTTP request result.

Code:
status = require('json').pdecode(response)

if type(status) == 'table' then
  poweron = status.power ~= 'standby'
  grp.checkupdate('1/1/1', poweron) -- power status (1 bit)

  grp.checkupdate('1/1/2', status.input_text) -- input (text)

  volume = status.volume / status.max_volume * 100
  grp.checkupdate('1/1/3', volume) -- current volume (1 byte scale)
end
Reply


Messages In This Thread
Yamaha Extended Control - by akn - 04.10.2021, 18:00
RE: Yamaha Extended Control - by admin - 05.10.2021, 07:00
RE: Yamaha Extended Control - by akn - 05.10.2021, 17:28
RE: Yamaha Extended Control - by akn - 07.10.2021, 06:15
RE: Yamaha Extended Control - by admin - 07.10.2021, 07:10

Forum Jump: