diff --git a/config/entropia.js b/config/entropia.js new file mode 100644 index 0000000..14691a3 --- /dev/null +++ b/config/entropia.js @@ -0,0 +1,63 @@ +// @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] + } + } + ] +}; + +export default config; diff --git a/img/layers/entropia/rooms.svg b/img/layers/entropia/rooms.svg new file mode 100644 index 0000000..bff7a11 --- /dev/null +++ b/img/layers/entropia/rooms.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/raw/entropia.draw.io b/raw/entropia.draw.io new file mode 100644 index 0000000..cadc9b2 --- /dev/null +++ b/raw/entropia.draw.io @@ -0,0 +1 @@ +5VZBk5sgGP013hUSY45tdtteOtOZHPbMyhdlguIgiWZ//WIAldVd247Tmc7mEnnA++C9JxjgQ9F+l6TKfwoKPEAhbQP8ECAU4X2i/zrkZpDYAZlk1A4agCN7AQuGFr0wCrU3UAnBFat8MBVlCanyMCKlaPxhJ8H9qhXJYAIcU8Kn6BOjKjdognYD/gNYlrvKUbw3Pc8kPWdSXEpbL0D4dP+Z7oI4LrvROidUNCMIPwb4IIVQ5qloD8A7bZ1sZt63d3q3hvVK+MXupO607QrLM8jaLV9CqX6HL57w2WWrm5MKSvqlU1y3SlFq8GuuCq5bkX6slRTnXsIOMfOBTvQflrTtddD5AlGAkjc9pBmM2Fr18pEHDpPAiWJXn57YPGQ9XV/hl2C6MAptdhNLY4OLwtBnqMVFpmAnjZX7Qx5FZAZqwqMfRpseoLsv8x7tPrtHcbKORxOe9TxKPp1HO7SSSYtE67k0o+HHxyNatrXJmYJjRdKu3ejb0jeW1JW5v06sBTrr9IlxfhBcyDuhu05cAq4gFbTvrj+az4CdgMOtf0ptrLajjODNTEh6cC4QngMfyI2X1bvfpJ0uD6He8YKW/1S6TbwsXZTMSBe9ze/fSLf5n6WL3rzRs9LtV0qdbg5fU+ZMGD5Z8eMr \ No newline at end of file diff --git a/src/config.js b/src/config.js index e3088b8..96cf77e 100644 --- a/src/config.js +++ b/src/config.js @@ -1,4 +1,4 @@ // @flow -import config from "../config/rzl"; +import config from "../config/entropia"; export default config;