openhab-core/bundles/org.openhab.core.test.magic
openhab-bot c4f0ab44df
New Crowdin updates (#3054)
* New translations units.properties (Portuguese)

* New translations units.properties (Portuguese, Brazilian)

* New translations firmware.properties (Slovenian)

* New translations units.properties (Slovenian)

* New translations validation.properties (Slovenian)

* New translations messages.properties (Slovenian)

* New translations tags.properties (Danish)

* New translations tags.properties (Slovenian)

* New translations DefaultSystemChannels.properties (Slovenian)

* New translations LanguageSupport.properties (Slovenian)

* New translations SystemProfiles.properties (Slovenian)

* New translations jsonStorage.properties (Slovenian)

* New translations network.properties (Slovenian)

* New translations i18n.properties (Slovenian)

* New translations voice.properties (Slovenian)

* New translations chart.properties (Slovenian)

* New translations persistence.properties (Slovenian)

* New translations addons.properties (Slovenian)

* New translations restauth.properties (Slovenian)

* New translations ephemeris.properties (Slovenian)

* New translations inbox.properties (Slovenian)

* New translations audio.properties (Slovenian)

* New translations hli.properties (Slovenian)

* New translations lsp.properties (Slovenian)

* New translations marketplace.properties (Slovenian)

* New translations sitemap.properties (Slovenian)

* New translations SystemThingStatusInfos.properties (Slovenian)

* New translations magic.properties (Slovenian)

* New translations automation.properties (Hebrew)

* New translations automation.properties (Slovenian)
2022-08-03 18:03:28 +02:00
..
cfg mavenize openHAB and integrate mavenized ESH repository (#467) 2019-01-28 13:07:31 +01:00
src New Crowdin updates (#3054) 2022-08-03 18:03:28 +02:00
.classpath [infrastructure] add external null-annotations (#1775) 2020-11-03 21:33:48 +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 Apply spotless and resolver (#3018) 2022-06-27 13:41:28 +02:00
README.md Renamed Yahoo to ACME (#2304) 2021-04-20 22:31:32 +02: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 the UI.

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" }