config.json 946 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "info":{
  3. "name":"4 Ways Relay Module",
  4. "vendor": "imuslab",
  5. "mcu":"esp12F",
  6. "firmware":"1.0.0",
  7. "author":"tobychui"
  8. },
  9. "api":[
  10. {
  11. "id":"relay1",
  12. "name": "Channel 1",
  13. "actions": {
  14. "on":"/on?relay=0",
  15. "off":"/off?relay=0",
  16. "toggle":"/toggle?relay=0"
  17. }
  18. },
  19. {
  20. "id":"relay2",
  21. "name": "Channel 2",
  22. "actions": {
  23. "on":"/on?relay=1",
  24. "off":"/off?relay=1",
  25. "toggle":"/toggle?relay=1"
  26. }
  27. },
  28. {
  29. "id":"relay3",
  30. "name": "Channel 3",
  31. "actions": {
  32. "on":"/on?relay=2",
  33. "off":"/off?relay=2",
  34. "toggle":"/toggle?relay=2"
  35. }
  36. },
  37. {
  38. "id":"relay4",
  39. "name": "Channel 4",
  40. "actions": {
  41. "on":"/on?relay=3",
  42. "off":"/off?relay=3",
  43. "toggle":"/toggle?relay=3"
  44. }
  45. }
  46. ]
  47. }