mqtt-control-map/config/entropia.js
uwap c7ca716802 Require the config as CLI arg for watch, build and production-build
The mqtt control map now loads the config provided via cli. It is no longer required to modify the src/config.js to load a different config.
2018-02-02 07:45:00 +01:00

63 lines
1.4 KiB
JavaScript

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