view service/rdf_to_mqtt/devs.py @ 1733:6279b1ac2b5e

fix some dev configs
author drewp@bigasterisk.com
date Mon, 10 Jul 2023 17:42:29 -0700
parents 80b01d548b9c
children
line wrap: on
line source

from rdflib import Namespace

ROOM = Namespace('http://projects.bigasterisk.com/room/')

devs = {
    ROOM['kitchenLight']:          {'root': 'h801_skylight', 'hasWhite': True, },
    ROOM['kitchenCounterLight']:   {'root': 'h801_counter', 'hasWhite': True, },
    ROOM['livingLampShelf']:       {'root': 'sonoff_0/switch/sonoff_basic_relay/command', 'values': 'binary', },
    ROOM['livingLampMantleEntry']: {'root': 'sonoff_1/switch/sonoff_basic_relay/command', 'values': 'binary', },
    ROOM['livingLampMantleChair']: {'root': 'sonoff_2/switch/sonoff_basic_relay/command', 'values': 'binary', },
    ROOM['livingLampToyShelf']:    {'root': 'sonoff_3/switch/sonoff_basic_relay/command', 'values': 'binary', },
    ROOM['livingLampPiano']:       {'root': 'sonoff_4/switch/sonoff_basic_relay/command', 'values': 'binary', },
    ROOM['theater']:               {'root': 'theater_blaster/ir_out', 'values': 'theaterOutputs', },
    ROOM['bedHeadboard']:  {'root': 'bed/light/headboard/command', 'hasWhite': True, },
    # https://github.com/Koenkk/zigbee2mqtt.io/blob/new_api/docs/information/mqtt_topics_and_message_structure.md#general
    ROOM['asherBedBar']:   {'root': 'bed_bar_asher/light/rgb/command',        'hasBrightness': True, 'defaults': {}},
    ROOM['asherDoor']:     {'root': 'zigbee-frontbed/0xd0cf5efffe28abcf/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
    ROOM['frontCeiling1']: {'root': 'zigbee-frontbed/0xf0d1b800000210fc/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
    ROOM['frontCeiling2']: {'root': 'zigbee-frontbed/0xf0d1b8000001ffc6/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
    ROOM['frontHanging']:  {'root': 'zigbee-frontbed/0xf0d1b80000023583/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
    ROOM['livingCouch']:   {'root': 'zigbee-frontbed/0x000b57fffec9645f/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
    ROOM['livingToys']:    {'root': 'zigbee-frontbed/0x90fd9ffffee70277/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
    ROOM['stairTop']:      {'root': 'zigbee-dash/0xf0d1b8000001c925/set', 'hasBrightness': True, 'defaults': { 'transition': 0, } },
}