MyFirstLEDLamp
id: urn:dev:mac:00c141ffff25084e
titles:
  en: MyFirstLEDLamp
  ja: 私の最初のLEDランプ
description: Simple LED Lamp using Node-RED
descriptions:
  en: Simple LED Lamp using Node-RED
  ja: Node-REDをつかったシンプルなLEDランプ
security definitions:
  nosec sc:
    scheme: nosec
security: nosec_sc
properties:
  led: LED status
    titles:
      en: LED status
      ja: LEDの状態
    type: object
    properties:
      value:
        type: number
    forms:
      href: http://example.com:1880/led
      op: readproperty
      op: writeproperty
      content type: application/json
actions:
  toggle: toggle a switch
    titles:
      en: toggle a switch
      ja: スイッチをトグルする
    safe: false
    idempotent: false
    forms:
      op: invokeaction
      href: http://example.com:1880/toggle
      content type: application/json
events:
  toggled: switch is toggled
    titles:
      en: switch is toggled
      ja: スイッチがトグルされた
    data:
      type: object
    forms:
      href: ws://example.com:1880/toggled
      op: subscribeevent
      content type: application/json

type: number