mqtt-control-map/config/entropia/index.js
uwap 3b78a4d8ad Move utils file into rzl folder
Everything in the utils.js is related to the RZL infrastructure and should hence be in the specific folder
2018-07-18 09:25:42 +02:00

68 lines
1.6 KiB
JavaScript

// @flow
import type { Config } from "config/flowtypes";
import { hex, rgb, rgba, rainbow } from "config/colors";
import * as types from "config/types";
import { mdi } from "config/icon";
const config : Config = {
space: {
name: "Entropia",
color: "orange",
mqtt: "ws://vielseitigkeit.club.entropia.de:1884"
},
topics: [
{
hauptraum_table_light: {
command: {
name: "/public/sensoren/TPH/leinwand/control",
type: types.option({ "A1 ON": "on", "A1 OFF": "off" })
},
defaultValue: "off"
},
hauptraum_table_light_on_hack: {
command: {
name: "/public/sensoren/TPH/leinwand/control",
type: types.option({ "A1 ON": "on", "A1 OFF": "off" })
},
defaultValue: "on"
}
}
],
controls: {
hauptraum_table_light: {
name: "Hauptraum Tisch",
position: [450, 450],
icon: mdi("white-balance-iridescent"),
iconColor: () => hex("#000000"),
ui: [
{
type: "toggle",
text: "Licht",
topic: "hauptraum_table_light",
icon: mdi("power")
},
{
type: "toggle",
text: "Licht",
topic: "hauptraum_table_light_on_hack",
icon: mdi("power")
}
]
}
},
layers: [
{
image: require("./assets/layers/rooms.svg"),
baseLayer: true,
name: "Entropia",
defaultVisibility: "visible",
opacity: 0.7,
bounds: {
topLeft: [0, 0],
bottomRight: [720, 680]
}
}
]
};
window.config = config;