Search in sources :

Example 1 with HueDataStore

use of org.openhab.io.hueemulation.internal.dto.HueDataStore in project openhab-addons by openhab.

the class RuleConditionHandlerTests method setUp.

@BeforeEach
public void setUp() {
    ds = new HueDataStore();
    ds.lights.put("1", new HueLightEntry(new SwitchItem("switch"), "switch", DeviceType.SwitchType));
    ds.sensors.put("2", new HueSensorEntry(new ContactItem("contact")));
    ds.groups.put("10", new HueGroupEntry("name", new GroupItem("white", new NumberItem("number")), DeviceType.SwitchType));
}
Also used : NumberItem(org.openhab.core.library.items.NumberItem) HueLightEntry(org.openhab.io.hueemulation.internal.dto.HueLightEntry) HueSensorEntry(org.openhab.io.hueemulation.internal.dto.HueSensorEntry) ContactItem(org.openhab.core.library.items.ContactItem) HueDataStore(org.openhab.io.hueemulation.internal.dto.HueDataStore) GroupItem(org.openhab.core.items.GroupItem) HueGroupEntry(org.openhab.io.hueemulation.internal.dto.HueGroupEntry) SwitchItem(org.openhab.core.library.items.SwitchItem) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 GroupItem (org.openhab.core.items.GroupItem)1 ContactItem (org.openhab.core.library.items.ContactItem)1 NumberItem (org.openhab.core.library.items.NumberItem)1 SwitchItem (org.openhab.core.library.items.SwitchItem)1 HueDataStore (org.openhab.io.hueemulation.internal.dto.HueDataStore)1 HueGroupEntry (org.openhab.io.hueemulation.internal.dto.HueGroupEntry)1 HueLightEntry (org.openhab.io.hueemulation.internal.dto.HueLightEntry)1 HueSensorEntry (org.openhab.io.hueemulation.internal.dto.HueSensorEntry)1