Hallo uliSt,
wenn du das Beispielscript nutzt, dann musst du doch nur im ersten Teil "CHANGE HERE" die entsprechenden URLs zum Schalten deiner Shellys eintragen, schon sollte es laufen. Ob allerdings 7 URLs mit einem Event getriggert werden können, weiß ich nicht.
Unten ein Beispiel von meinem BluButton, die MAC-Adresse habe ich unkenntlich gemacht.
"Toggle" dürfte bei dir nicht die erste Wahl sein, du solltest ein Event zum Ausschalten nutzen, z.B. longPush.
Mit einem anderen Event kannst du ja gezielt eine Minimalbeleuchtung einschalten, wenn du dich deinem Camper näherst.
/** =============================== CHANGE HERE =============================== */
let CONFIG = {
bluButtonAddress: "xx:xx:xx:xx:xx:xx", //the mac address of shelly blu button1 that will trigger the actions
actions: { //urls to be called on a event
//when adding urls you must separate them with commas and put them in quotation marks
singlePush: [ //urls that will be executed at singlePush event from the blu button1
"http://127.0.0.1/relay/0?turn=toggle"
],
doublePush: [ //urls that will be executed at doublePush event from the blu button1
"http://192.168.2.66/relay/0?turn=toggle"
],
triplePush: [ //urls that will be executed at triplePush event from the blu button1
"http://192.168.2.47/relay/0?turn=on"
],
longPush: [ //urls that will be executed at longPush event from the blu button1
]
}
};
/** =============================== STOP CHANGING HERE =============================== */