separate actionTopic and feedbackTopic

This commit is contained in:
2018-06-25 11:28:02 +02:00
parent ac322e4154
commit fdf0c55094
5 changed files with 80 additions and 61 deletions

64
sample-configuration.json Normal file
View File

@ -0,0 +1,64 @@
{
"switches": [
{
"room": "Wohnzimmer",
"switches": [
{
"label": "kleine Lampe",
"actionTopic": "dispatcher_ng/items/Gnd/LivingRoom/SmallLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/LivingRoom/SmallLight/state/feedback"
},
{
"label": "große Lampe",
"actionTopic": "dispatcher_ng/items/Gnd/LivingRoom/LargeLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/LivingRoom/LargeLight/state/feedback"
},
{
"label": "Sterne",
"actionTopic": "dispatcher_ng/items/Gnd/LivingRoom/Stars/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/LivingRoom/Stars/state/feedback"
},
{
"label": "Stehlampe",
"actionTopic": "dispatcher_ng/items/Gnd/LivingRoom/StandLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/LivingRoom/StandLight/state/feedback"
}
]
},
{
"room": "Esszimmer",
"switches": [
{
"label": "kleine Lampe",
"actionTopic": "dispatcher_ng/items/Gnd/DiningRoom/SmallLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/DiningRoom/SmallLight/state/feedback"
},
{
"label": "Stehlampe",
"actionTopic": "dispatcher_ng/items/Gnd/DiningRoom/StandLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/DiningRoom/StandLight/state/feedback"
},
{
"label": "Schranklicht",
"actionTopic": "dispatcher_ng/items/Gnd/DiningRoom/CupboardLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/DiningRoom/CupboardLight/state/feedback"
},
{
"label": "Naehkaestchenlicht",
"actionTopic": "dispatcher_ng/items/Gnd/DiningRoom/NaehkaestchenLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/DiningRoom/NaehkaestchenLight/state/feedback"
},
{
"label": "Regallicht",
"actionTopic": "dispatcher_ng/items/Gnd/DiningRoom/ShelfLight/state",
"feedbackTopic": "dispatcher_ng/items/Gnd/DiningRoom/ShelfLight/state/feedback"
}
]
}
],
"windows": [
{ "label": "Fenster 1", "topic": "test/fenster1" },
{ "label": "Fenster 2", "topic": "test/fenster2" },
{ "label": "Fenster 3", "topic": "test/fenster3" }
]
}