openhab-core/bundles/org.openhab.core.test.magic
Wouter Born 2681b5d90b
Remove MagicHttpResource (#1390)
For ESH it made sense to use this but nowadays these UIs are no longer part of openhab-core and the demo app used for development is in openhab-distro.
Furthermore it provides links to UIs that are no longer part of OH3, uses ESH logos and the new Default UI is also using / so it throws exceptions.

See: https://github.com/openhab/openhab-distro/pull/1084#issuecomment-596226652

Signed-off-by: Wouter Born <github@maindrain.net>
2020-03-14 23:19:42 +01:00
..
cfg mavenize openHAB and integrate mavenized ESH repository (#467) 2019-01-28 13:07:31 +01:00
src Remove MagicHttpResource (#1390) 2020-03-14 23:19:42 +01:00
.classpath Switch to Java 11 and drop Java 8 support (#1305) 2020-01-12 22:32:28 +01:00
.project mavenize openHAB and integrate mavenized ESH repository (#467) 2019-01-28 13:07:31 +01:00
NOTICE Updated NOTICE files to openHAB (#578) 2019-02-15 10:46:18 +01:00
pom.xml Applied spotless formatter (#1302) 2019-12-30 22:55:19 +01:00
README.md mavenize openHAB and integrate mavenized ESH repository (#467) 2019-01-28 13:07:31 +01:00

Magic Bundle

The Magic Bundle is a virtual device bundle which provides different Things, Channels and supporting functionality for easy UI testing.

Future plans:

  • Simulate communication errors
  • Provide REST API to update thing status from outside
  • Provide REST API to temporarily create new Channels/Things

Provided Things

  • Magic Light - On/Off
  • Magic Light - Dimmable
  • Magic Light - Color
  • Magic Sensor - Door/Window Contact
  • Magic Location
  • Magic Configurable Thing
  • Magic Thermostat
  • Magic Delayed Online Thing - goes online after some time
  • Magic Firmware Updatable Thing - can be firmware updated, depending on the model

Discovery

The Things provided by this bundle do not require discovery but can all be set up manually using PaperUI.

Bundle Configuration

Right now Magic has no specific configuration. This may change when Future plans are implemented.

Thing Configuration

The provided Things need no parameters right now.

Channels

Available channels:

  • switch - the on/off toggle maps to a Switch item.
  • brightness - the brightness value maps to a Dimmer item.
  • color - the color maps to a Color item.
  • alert - the alert function of the color light.
  • contact - the contact of the door/window contact.
  • location - the location of the magic location.
  • temperature - the temperature of the magic thermostat.
  • number - the delay in seconds for the delayed thing to go online.

Full Example

*.things:

magic:onoff-light:mylight "Bright or Dark"
magic:dimmable-light:greys "Shades of light"
magic:color-light:rainbow "Rainbow"

*.items:

Switch Light1 "On/Off Light" { channel="magic:onoff-light:mylight:switch" }
Dimmer Light2 "Shades of light" { channel="magic:dimmable-light:greys:brightness" }
Color Rainbow "Rainbow" { channel="magic:color-light:rainbow:color" }