How to use the pydeconz.group.DeconzGroup function in pydeconz

To help you get started, we’ve selected a few pydeconz examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kane610 / deconz / tests / test_groups.py View on Github external
async def test_create_group():
    """Verify that creating a group works.

    Just tests a subset right now;
        xy will also be signalled as a set from 0.61.
    """
    group = DeconzGroup("0", deepcopy(FIXTURE_GROUP), None)

    assert group.state == True
    assert group.groupclass == None
    assert group.all_on == False
    assert group.any_on == True
    assert group.devicemembership == []
    assert group.hidden == None
    assert group.id == "11"
    assert group.lights == ["14", "15", "12"]
    assert group.lightsequence == None
    assert group.multideviceids == None
    assert group.scenes["1"].id == "1"
    assert group.scenes["1"].name == "warmlight"

    assert group.brightness == 132
    assert group.hue == 0
github Kane610 / deconz / pydeconz / group.py View on Github external
def __init__(self, raw, request):
        super().__init__(raw, request, URL, DeconzGroup)