NEWS
Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen
-
@MartyBr sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
@Mic
Ich habe den Trigger unter 5. eingetragen. Hilft aber nicht:

Den Trigger ergänzt du in der entsprechenden Zeile unter 4. ZONEN. Nicht in 5. ZEITPLÄNE, die lösen final dann nur die Trigger aus, wenn Bedingungen alle zutreffen.
Gute Nacht und danke für deine Tests

Update 22:13
sorry, habe dich fehlgeleitet oben, der Auslöser muss in "4. ZONEN" auch als Auslöser hinzugefügt werden. Vergiss das mit "5. ZEITPLÄNE" bitte. Dort muss dann aber auch die entsprechende Zone aufgenommen werden. (ich korrigiere oben)
@Mic
Hallo Mic, ich habe das Update auf die Version durchgeführt. Ich komme aber mit den Auslöser "60 Minuten vor Sonnenuntergang" nicht weiter. Beim Start kommt auch wieder der "unique" Fehler.
Ich habe hier nochmal die Config angehängt, vielleicht hast du einen guten Tipp.
P.S.
<Auslöser> für 5. ist die beste Wahl.{ "_id": "system.adapter.smartcontrol.0", "common": { "name": "smartcontrol", "version": "0.1.0-alpha.8", "title": "Smart Control", "authors": [ "Mic-M <iob.micm@gmail.com>" ], "keywords": [ "smart", "control", "rooms", "groups", "motion sensors", "devices", "switches", "lights", "trigger", "schedule", "zones" ], "license": "MIT", "platform": "Javascript/Node.js", "main": "main.js", "icon": "smartcontrol.png", "enabled": false, "extIcon": "https://raw.githubusercontent.com/Mic-M/ioBroker.smartcontrol/master/admin/smartcontrol.png", "readme": "https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/README.md", "loglevel": "info", "mode": "daemon", "type": "logic", "compact": true, "connectionType": "local", "dataSource": "poll", "materialize": true, "dependencies": [ { "js-controller": ">=1.4.2" } ], "installedFrom": "https://github.com/Mic-M/ioBroker.smartcontrol/tarball/9f914faadb367a3ed85e37878de6138d29fddbcd", "installedVersion": "0.1.0-alpha.8", "host": "iobroker" }, "native": { "exceedMidnight": true, "motionNoBriIfTimer": true, "triggerStatesAck": "false", "limitTriggerInterval": "3", "extendedInfoLog": true, "tableTriggerMotion": [ { "active": true, "name": "Motion Wohnzimmer Süd", "stateId": "hm-rpc.2.000918A98BEDE4.1.MOTION", "stateVal": "true", "duration": "180", "briStateId": "hm-rpc.2.000918A98BEDE4.1.ILLUMINATION", "briThreshold": "10" }, { "active": true, "name": "Motion Wohnzimmer Nord", "stateId": "hm-rpc.2.000918A98BEDEF.1.MOTION", "stateVal": "true", "duration": "180", "briStateId": "hm-rpc.2.000918A98BEDEF.1.ILLUMINATION", "briThreshold": "10" }, { "active": false, "name": "Motion Bathroom", "stateId": "smartcontrol.0.Test.trigger.Bathroom_motion", "stateVal": "true", "duration": "10", "briStateId": "smartcontrol.0.Test.brightness.Bathroom_bri", "briThreshold": "100" }, { "active": false, "name": "Motion Hallway Sensor #1", "stateId": "smartcontrol.0.Test.trigger.Hallway1_motion", "stateVal": "true", "duration": "120", "briStateId": "smartcontrol.0.Test.brightness.Hallway1_bri", "briThreshold": "70" }, { "active": false, "name": "Motion Hallway Sensor #2", "stateId": "smartcontrol.0.Test.trigger.Hallway2_motion", "stateVal": "true", "duration": "120", "briStateId": "smartcontrol.0.Test.brightness.Hallway2_bri", "briThreshold": "60" } ], "tableTriggerDevices": [ { "active": true, "name": "Temperatur Wohnzimmer größer 23", "stateId": "alias.0.Temperatur.Wohnzimmer.Wohnzimmer-Temp-Mittel", "stateVal": ">23" }, { "active": true, "name": "Temperatur Wohnzimmer kleiner 23", "stateId": "alias.0.Temperatur.Wohnzimmer.Wohnzimmer-Temp-Mittel", "stateVal": "<=23" }, { "active": false, "name": "Wall Switch Bathroom", "stateId": "smartcontrol.0.Test.trigger.Bathroom_wall-switch", "stateVal": "true" }, { "active": false, "name": "Wall Switch Hallway #1", "stateId": "smartcontrol.0.Test.trigger.Hallway1_wall-switch", "stateVal": "true" }, { "active": false, "name": "Wall Switch Hallway #2", "stateId": "smartcontrol.0.Test.trigger.Hallway2_wall-switch", "stateVal": "true" }, { "active": false, "name": "Relax Area Person Sits Indicator", "stateId": "smartcontrol.0.Test.trigger.RelaxPersonSitting", "stateVal": "true" } ], "tableTriggerTimes": [ { "active": true, "name": "30 Minuten vor Sonnenuntergang", "time": "sunset-30", "additionalConditions": [], "never": [] }, { "active": true, "name": "60 Minuten vor Sonnenuntergang", "time": "sunset-60", "additionalConditions": [], "never": [] }, { "active": false, "name": "Every hour at minute 42", "time": "42 * * * *", "additionalConditions": [], "never": [] }, { "active": false, "name": "At 22:00 on every day-of-week from Monday through Friday", "time": "0 22 * * 1-5", "additionalConditions": [], "never": [] }, { "active": false, "name": "At 04:05 on Sunday", "time": "5 4 * * sun", "additionalConditions": [], "never": [] }, { "active": false, "name": "30 Minutes after Sunset", "time": "sunset+30", "additionalConditions": [], "never": [] } ], "tableTargetDevices": [ { "active": true, "name": "Wohnzimmer Schreibtischlampe", "onState": "hm-rpc.1.OEQ0478213.1.STATE", "onValue": "true", "offState": "hm-rpc.1.OEQ0478213.1.STATE", "offValue": "false" }, { "active": true, "name": "Wohnzimmer Ecklampe", "onState": "hm-rpc.1.OEQ0478215.1.STATE", "onValue": "true", "offState": "hm-rpc.1.OEQ0478215.1.STATE", "offValue": "false" }, { "active": true, "name": "Wohnzimmer Tischlampe", "onState": "zigbee.0.14b457fffe2be766.state", "onValue": "true", "offState": "zigbee.0.14b457fffe2be766.state", "offValue": "false" }, { "active": false, "name": "Bathroom Light", "onState": "smartcontrol.0.Test.light.Bathroom", "onValue": "true", "offState": "smartcontrol.0.Test.light.Bathroom", "offValue": "false" }, { "active": false, "name": "Bathroom Radio", "onState": "smartcontrol.0.Test.radio.Bathroom", "onValue": "Smooth Jazz", "offState": "smartcontrol.0.Test.radio.Bathroom", "offValue": "Musik aus" }, { "active": false, "name": "Hallway Light", "onState": "smartcontrol.0.Test.light.Hallway", "onValue": "true", "offState": "smartcontrol.0.Test.light.Hallway", "offValue": "false" }, { "active": false, "name": "Relax Area Ceiling Light", "onState": "smartcontrol.0.Test.light.RelaxAreaCeiling", "onValue": "true", "offState": "smartcontrol.0.Test.light.RelaxAreaCeiling", "offValue": "false" }, { "active": false, "name": "Relax Area Wall Light", "onState": "smartcontrol.0.Test.light.RelaxAreaWall", "onValue": "true", "offState": "smartcontrol.0.Test.light.RelaxAreaWall", "offValue": "false" } ], "tableCombinedDevices": [], "tableZones": [ { "active": true, "name": "Wohnzimmer", "triggers": [ "Motion Wohnzimmer Süd", "Motion Wohnzimmer Nord" ], "targets": [ "Wohnzimmer Schreibtischlampe", "Wohnzimmer Ecklampe", "Wohnzimmer Tischlampe" ] }, { "active": true, "name": "Wohnzimmer", "triggers": [ "60 Minuten vor Sonnenuntergang" ], "targets": [ "Wohnzimmer Schreibtischlampe", "Wohnzimmer Ecklampe", "Wohnzimmer Tischlampe" ] }, { "active": false, "name": "Hallway", "triggers": [ "Motion Hallway Sensor #1", "Motion Hallway Sensor #2", "Wall Switch Hallway #1", "Wall Switch Hallway #2" ], "targets": [ "Hallway Light" ] }, { "active": false, "name": "Relax Area", "triggers": [ "Relax Area Person Sits Indicator" ], "targets": [ "Relax Area Ceiling Light", "Relax Area Wall Light" ] }, { "active": false, "name": "Bathroom Ground Floor", "triggers": [ "Motion Bathroom", "Wall Switch Bathroom" ], "targets": [ "Bathroom Light", "Bathroom Radio" ] }, { "active": true, "name": "Wohnzimmer", "triggers": [ "30 Minuten vor Sonnenuntergang" ], "targets": [ "Wohnzimmer Schreibtischlampe" ] } ], "tableConditions": [ { "active": true, "name": "Haustür geschlossen", "conditionState": "hm-rpc.1.NEQ1480228.1.STATE", "conditionValue": "false" }, { "active": true, "name": "Jemand Anwesend", "conditionState": "0_userdata.0.Anwesenheit.Anwesenheit", "conditionValue": "true" }, { "active": true, "name": "Niemand Anwesend", "conditionState": "0_userdata.0.Anwesenheit.Anwesenheit", "conditionValue": "false" }, { "active": true, "name": "Feiertag Heute", "conditionState": "feiertage.0.heute.boolean", "conditionValue": "true" }, { "active": true, "name": "Feiertag Morgen", "conditionState": "feiertage.0.morgen.boolean", "conditionValue": "true" }, { "active": false, "name": "Public Holiday Today", "conditionState": "smartcontrol.0.Test.condition.isHolidayToday", "conditionValue": "true" }, { "active": false, "name": "Is Front Door Locked?", "conditionState": "smartcontrol.0.Test.condition.isFrontDoorLocked", "conditionValue": "true" }, { "active": false, "name": "No one is present", "conditionState": "smartcontrol.0.Test.condition.isAnyonePresent", "conditionValue": "false" }, { "active": false, "name": "One or more are present", "conditionState": "smartcontrol.0.Test.condition.isAnyonePresent", "conditionValue": "true" } ], "tableSchedules": [ { "active": true, "name": "Wohnzimmer", "start": "sunset-60", "end": "22:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "additionalConditions": [ "Jemand Anwesend" ], "never": [ "Niemand Anwesend" ] }, { "active": false, "name": "Relax Area", "start": "sunset+30", "end": "sunrise", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "additionalConditions": [ "One or more are present" ], "never": [] }, { "active": false, "name": "Hallway", "start": "sunset-20", "end": "22:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": false, "sun": false, "additionalConditions": [ "One or more are present" ], "never": [ "Public Holiday Today" ] }, { "active": false, "name": "Hallway", "start": "sunset-20", "end": "1:00", "mon": false, "tue": false, "wed": false, "thu": false, "fri": false, "sat": true, "sun": true, "additionalConditions": [ "One or more are present" ], "never": [] }, { "active": false, "name": "Bathroom Ground Floor", "start": "06:00", "end": "09:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": false, "sun": false, "additionalConditions": [ "Public Holiday Today" ], "never": [ "No one is present" ] }, { "active": false, "name": "Bathroom Ground Floor", "start": "08:00", "end": "11:00", "mon": false, "tue": false, "wed": false, "thu": false, "fri": false, "sat": true, "sun": true, "additionalConditions": [], "never": [ "No one is present" ] } ] } } -
@Mic
Hallo Mic, ich habe das Update auf die Version durchgeführt. Ich komme aber mit den Auslöser "60 Minuten vor Sonnenuntergang" nicht weiter. Beim Start kommt auch wieder der "unique" Fehler.
Ich habe hier nochmal die Config angehängt, vielleicht hast du einen guten Tipp.
P.S.
<Auslöser> für 5. ist die beste Wahl.{ "_id": "system.adapter.smartcontrol.0", "common": { "name": "smartcontrol", "version": "0.1.0-alpha.8", "title": "Smart Control", "authors": [ "Mic-M <iob.micm@gmail.com>" ], "keywords": [ "smart", "control", "rooms", "groups", "motion sensors", "devices", "switches", "lights", "trigger", "schedule", "zones" ], "license": "MIT", "platform": "Javascript/Node.js", "main": "main.js", "icon": "smartcontrol.png", "enabled": false, "extIcon": "https://raw.githubusercontent.com/Mic-M/ioBroker.smartcontrol/master/admin/smartcontrol.png", "readme": "https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/README.md", "loglevel": "info", "mode": "daemon", "type": "logic", "compact": true, "connectionType": "local", "dataSource": "poll", "materialize": true, "dependencies": [ { "js-controller": ">=1.4.2" } ], "installedFrom": "https://github.com/Mic-M/ioBroker.smartcontrol/tarball/9f914faadb367a3ed85e37878de6138d29fddbcd", "installedVersion": "0.1.0-alpha.8", "host": "iobroker" }, "native": { "exceedMidnight": true, "motionNoBriIfTimer": true, "triggerStatesAck": "false", "limitTriggerInterval": "3", "extendedInfoLog": true, "tableTriggerMotion": [ { "active": true, "name": "Motion Wohnzimmer Süd", "stateId": "hm-rpc.2.000918A98BEDE4.1.MOTION", "stateVal": "true", "duration": "180", "briStateId": "hm-rpc.2.000918A98BEDE4.1.ILLUMINATION", "briThreshold": "10" }, { "active": true, "name": "Motion Wohnzimmer Nord", "stateId": "hm-rpc.2.000918A98BEDEF.1.MOTION", "stateVal": "true", "duration": "180", "briStateId": "hm-rpc.2.000918A98BEDEF.1.ILLUMINATION", "briThreshold": "10" }, { "active": false, "name": "Motion Bathroom", "stateId": "smartcontrol.0.Test.trigger.Bathroom_motion", "stateVal": "true", "duration": "10", "briStateId": "smartcontrol.0.Test.brightness.Bathroom_bri", "briThreshold": "100" }, { "active": false, "name": "Motion Hallway Sensor #1", "stateId": "smartcontrol.0.Test.trigger.Hallway1_motion", "stateVal": "true", "duration": "120", "briStateId": "smartcontrol.0.Test.brightness.Hallway1_bri", "briThreshold": "70" }, { "active": false, "name": "Motion Hallway Sensor #2", "stateId": "smartcontrol.0.Test.trigger.Hallway2_motion", "stateVal": "true", "duration": "120", "briStateId": "smartcontrol.0.Test.brightness.Hallway2_bri", "briThreshold": "60" } ], "tableTriggerDevices": [ { "active": true, "name": "Temperatur Wohnzimmer größer 23", "stateId": "alias.0.Temperatur.Wohnzimmer.Wohnzimmer-Temp-Mittel", "stateVal": ">23" }, { "active": true, "name": "Temperatur Wohnzimmer kleiner 23", "stateId": "alias.0.Temperatur.Wohnzimmer.Wohnzimmer-Temp-Mittel", "stateVal": "<=23" }, { "active": false, "name": "Wall Switch Bathroom", "stateId": "smartcontrol.0.Test.trigger.Bathroom_wall-switch", "stateVal": "true" }, { "active": false, "name": "Wall Switch Hallway #1", "stateId": "smartcontrol.0.Test.trigger.Hallway1_wall-switch", "stateVal": "true" }, { "active": false, "name": "Wall Switch Hallway #2", "stateId": "smartcontrol.0.Test.trigger.Hallway2_wall-switch", "stateVal": "true" }, { "active": false, "name": "Relax Area Person Sits Indicator", "stateId": "smartcontrol.0.Test.trigger.RelaxPersonSitting", "stateVal": "true" } ], "tableTriggerTimes": [ { "active": true, "name": "30 Minuten vor Sonnenuntergang", "time": "sunset-30", "additionalConditions": [], "never": [] }, { "active": true, "name": "60 Minuten vor Sonnenuntergang", "time": "sunset-60", "additionalConditions": [], "never": [] }, { "active": false, "name": "Every hour at minute 42", "time": "42 * * * *", "additionalConditions": [], "never": [] }, { "active": false, "name": "At 22:00 on every day-of-week from Monday through Friday", "time": "0 22 * * 1-5", "additionalConditions": [], "never": [] }, { "active": false, "name": "At 04:05 on Sunday", "time": "5 4 * * sun", "additionalConditions": [], "never": [] }, { "active": false, "name": "30 Minutes after Sunset", "time": "sunset+30", "additionalConditions": [], "never": [] } ], "tableTargetDevices": [ { "active": true, "name": "Wohnzimmer Schreibtischlampe", "onState": "hm-rpc.1.OEQ0478213.1.STATE", "onValue": "true", "offState": "hm-rpc.1.OEQ0478213.1.STATE", "offValue": "false" }, { "active": true, "name": "Wohnzimmer Ecklampe", "onState": "hm-rpc.1.OEQ0478215.1.STATE", "onValue": "true", "offState": "hm-rpc.1.OEQ0478215.1.STATE", "offValue": "false" }, { "active": true, "name": "Wohnzimmer Tischlampe", "onState": "zigbee.0.14b457fffe2be766.state", "onValue": "true", "offState": "zigbee.0.14b457fffe2be766.state", "offValue": "false" }, { "active": false, "name": "Bathroom Light", "onState": "smartcontrol.0.Test.light.Bathroom", "onValue": "true", "offState": "smartcontrol.0.Test.light.Bathroom", "offValue": "false" }, { "active": false, "name": "Bathroom Radio", "onState": "smartcontrol.0.Test.radio.Bathroom", "onValue": "Smooth Jazz", "offState": "smartcontrol.0.Test.radio.Bathroom", "offValue": "Musik aus" }, { "active": false, "name": "Hallway Light", "onState": "smartcontrol.0.Test.light.Hallway", "onValue": "true", "offState": "smartcontrol.0.Test.light.Hallway", "offValue": "false" }, { "active": false, "name": "Relax Area Ceiling Light", "onState": "smartcontrol.0.Test.light.RelaxAreaCeiling", "onValue": "true", "offState": "smartcontrol.0.Test.light.RelaxAreaCeiling", "offValue": "false" }, { "active": false, "name": "Relax Area Wall Light", "onState": "smartcontrol.0.Test.light.RelaxAreaWall", "onValue": "true", "offState": "smartcontrol.0.Test.light.RelaxAreaWall", "offValue": "false" } ], "tableCombinedDevices": [], "tableZones": [ { "active": true, "name": "Wohnzimmer", "triggers": [ "Motion Wohnzimmer Süd", "Motion Wohnzimmer Nord" ], "targets": [ "Wohnzimmer Schreibtischlampe", "Wohnzimmer Ecklampe", "Wohnzimmer Tischlampe" ] }, { "active": true, "name": "Wohnzimmer", "triggers": [ "60 Minuten vor Sonnenuntergang" ], "targets": [ "Wohnzimmer Schreibtischlampe", "Wohnzimmer Ecklampe", "Wohnzimmer Tischlampe" ] }, { "active": false, "name": "Hallway", "triggers": [ "Motion Hallway Sensor #1", "Motion Hallway Sensor #2", "Wall Switch Hallway #1", "Wall Switch Hallway #2" ], "targets": [ "Hallway Light" ] }, { "active": false, "name": "Relax Area", "triggers": [ "Relax Area Person Sits Indicator" ], "targets": [ "Relax Area Ceiling Light", "Relax Area Wall Light" ] }, { "active": false, "name": "Bathroom Ground Floor", "triggers": [ "Motion Bathroom", "Wall Switch Bathroom" ], "targets": [ "Bathroom Light", "Bathroom Radio" ] }, { "active": true, "name": "Wohnzimmer", "triggers": [ "30 Minuten vor Sonnenuntergang" ], "targets": [ "Wohnzimmer Schreibtischlampe" ] } ], "tableConditions": [ { "active": true, "name": "Haustür geschlossen", "conditionState": "hm-rpc.1.NEQ1480228.1.STATE", "conditionValue": "false" }, { "active": true, "name": "Jemand Anwesend", "conditionState": "0_userdata.0.Anwesenheit.Anwesenheit", "conditionValue": "true" }, { "active": true, "name": "Niemand Anwesend", "conditionState": "0_userdata.0.Anwesenheit.Anwesenheit", "conditionValue": "false" }, { "active": true, "name": "Feiertag Heute", "conditionState": "feiertage.0.heute.boolean", "conditionValue": "true" }, { "active": true, "name": "Feiertag Morgen", "conditionState": "feiertage.0.morgen.boolean", "conditionValue": "true" }, { "active": false, "name": "Public Holiday Today", "conditionState": "smartcontrol.0.Test.condition.isHolidayToday", "conditionValue": "true" }, { "active": false, "name": "Is Front Door Locked?", "conditionState": "smartcontrol.0.Test.condition.isFrontDoorLocked", "conditionValue": "true" }, { "active": false, "name": "No one is present", "conditionState": "smartcontrol.0.Test.condition.isAnyonePresent", "conditionValue": "false" }, { "active": false, "name": "One or more are present", "conditionState": "smartcontrol.0.Test.condition.isAnyonePresent", "conditionValue": "true" } ], "tableSchedules": [ { "active": true, "name": "Wohnzimmer", "start": "sunset-60", "end": "22:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "additionalConditions": [ "Jemand Anwesend" ], "never": [ "Niemand Anwesend" ] }, { "active": false, "name": "Relax Area", "start": "sunset+30", "end": "sunrise", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "additionalConditions": [ "One or more are present" ], "never": [] }, { "active": false, "name": "Hallway", "start": "sunset-20", "end": "22:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": false, "sun": false, "additionalConditions": [ "One or more are present" ], "never": [ "Public Holiday Today" ] }, { "active": false, "name": "Hallway", "start": "sunset-20", "end": "1:00", "mon": false, "tue": false, "wed": false, "thu": false, "fri": false, "sat": true, "sun": true, "additionalConditions": [ "One or more are present" ], "never": [] }, { "active": false, "name": "Bathroom Ground Floor", "start": "06:00", "end": "09:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": false, "sun": false, "additionalConditions": [ "Public Holiday Today" ], "never": [ "No one is present" ] }, { "active": false, "name": "Bathroom Ground Floor", "start": "08:00", "end": "11:00", "mon": false, "tue": false, "wed": false, "thu": false, "fri": false, "sat": true, "sun": true, "additionalConditions": [], "never": [ "No one is present" ] } ] } }@MartyBr sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Beim Start kommt auch wieder der "unique" Fehler.
Der ist gut so
Namen der Zonen dürfen nicht doppelt vorkommen, denn sonst weiß die Tabelle "5. AUSFÜHRUNG" nicht, welche Zone denn nun genau gemeint ist.
Schau mal, ob das dein anderes Problem dann auch löst, sonst schaue ich mir das gerne an. -
oder hier noch eine spalte wo man dann ein oder ausschalten auswählen kann:

habe es so wie im bild - funktioniert - hatte ich auch schon vorher überlegt, dachte aber, dass ich etwas übersehen hätte

-
Auswahl "einschalten/ausschalten"
Habe es nun in 0.1.0-alpha.9 eingebaut:
Gibt jetzt unter "Andere Auslöser" und "Zeitabhängige Auslöser" die neue Option, Spalte "Ziel aus?".


du bist ja flot

schaltet leider nicht aus
system.adapter.smartcontrol.0 (2).json
habe das setting mit json gemacht- magst du lieber bilder des settings ?

-
@MartyBr sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Beim Start kommt auch wieder der "unique" Fehler.
Der ist gut so
Namen der Zonen dürfen nicht doppelt vorkommen, denn sonst weiß die Tabelle "5. AUSFÜHRUNG" nicht, welche Zone denn nun genau gemeint ist.
Schau mal, ob das dein anderes Problem dann auch löst, sonst schaue ich mir das gerne an. -
@Mic
Der Test ist negativ verlaufen. Weder wurden die Lampen als auch aus geschaltet. Ich habe mal bei weiteren Optionen ack auf egal gestellt.
Hilft leider nicht.Hier die Options:
{ "_id": "system.adapter.smartcontrol.0", "common": { "name": "smartcontrol", "version": "0.1.0-alpha.9", "title": "Smart Control", "authors": [ "Mic-M <iob.micm@gmail.com>" ], "keywords": [ "smart", "control", "rooms", "groups", "motion sensors", "devices", "switches", "lights", "trigger", "schedule", "zones" ], "license": "MIT", "platform": "Javascript/Node.js", "main": "main.js", "icon": "smartcontrol.png", "enabled": true, "extIcon": "https://raw.githubusercontent.com/Mic-M/ioBroker.smartcontrol/master/admin/smartcontrol.png", "readme": "https://github.com/Mic-M/ioBroker.smartcontrol/blob/master/README.md", "loglevel": "info", "mode": "daemon", "type": "logic", "compact": true, "connectionType": "local", "dataSource": "poll", "materialize": true, "dependencies": [ { "js-controller": ">=1.4.2" } ], "installedFrom": "https://github.com/Mic-M/ioBroker.smartcontrol/tarball/7fa0ef10611f09c57faaec82da54cdea740afb5b", "installedVersion": "0.1.0-alpha.9", "host": "iobroker" }, "native": { "exceedMidnight": true, "motionNoBriIfTimer": true, "triggerStatesAck": "any", "limitTriggerInterval": "3", "extendedInfoLog": true, "tableTriggerMotion": [ { "active": true, "name": "Motion Wohnzimmer Süd", "stateId": "hm-rpc.2.000918A98BEDE4.1.MOTION", "stateVal": "true", "duration": "180", "briStateId": "hm-rpc.2.000918A98BEDE4.1.ILLUMINATION", "briThreshold": "5" }, { "active": true, "name": "Motion Wohnzimmer Nord", "stateId": "hm-rpc.2.000918A98BEDEF.1.MOTION", "stateVal": "true", "duration": "180", "briStateId": "hm-rpc.2.000918A98BEDEF.1.ILLUMINATION", "briThreshold": "5" }, { "active": false, "name": "Motion Bathroom", "stateId": "smartcontrol.0.Test.trigger.Bathroom_motion", "stateVal": "true", "duration": "10", "briStateId": "smartcontrol.0.Test.brightness.Bathroom_bri", "briThreshold": "100" }, { "active": false, "name": "Motion Hallway Sensor #1", "stateId": "smartcontrol.0.Test.trigger.Hallway1_motion", "stateVal": "true", "duration": "120", "briStateId": "smartcontrol.0.Test.brightness.Hallway1_bri", "briThreshold": "70" }, { "active": false, "name": "Motion Hallway Sensor #2", "stateId": "smartcontrol.0.Test.trigger.Hallway2_motion", "stateVal": "true", "duration": "120", "briStateId": "smartcontrol.0.Test.brightness.Hallway2_bri", "briThreshold": "60" } ], "tableTriggerDevices": [ { "active": true, "name": "Temperatur Wohnzimmer größer 23", "stateId": "alias.0.Temperatur.Wohnzimmer.Wohnzimmer-Temp-Mittel", "stateVal": ">23", "targetOff": false }, { "active": true, "name": "Temperatur Wohnzimmer kleiner 23", "stateId": "alias.0.Temperatur.Wohnzimmer.Wohnzimmer-Temp-Mittel", "stateVal": "<=23", "targetOff": false }, { "active": false, "name": "Wall Switch Bathroom", "stateId": "smartcontrol.0.Test.trigger.Bathroom_wall-switch", "stateVal": "true", "targetOff": false }, { "active": false, "name": "Wall Switch Hallway #1", "stateId": "smartcontrol.0.Test.trigger.Hallway1_wall-switch", "stateVal": "true", "targetOff": false }, { "active": false, "name": "Wall Switch Hallway #2", "stateId": "smartcontrol.0.Test.trigger.Hallway2_wall-switch", "stateVal": "true", "targetOff": false }, { "active": false, "name": "Relax Area Person Sits Indicator", "stateId": "smartcontrol.0.Test.trigger.RelaxPersonSitting", "stateVal": "true", "targetOff": false } ], "tableTriggerTimes": [ { "active": true, "name": "30 Minuten vor Sonnenuntergang", "time": "sunset-30", "additionalConditions": [], "never": [], "targetOff": false }, { "active": true, "name": "60 Minuten vor Sonnenuntergang", "time": "sunset-60", "additionalConditions": [], "never": [], "targetOff": false }, { "active": true, "name": "30 Minuten nach Sonnenaufgang", "time": "sunrise+30", "additionalConditions": [], "never": [], "targetOff": false }, { "active": false, "name": "Every hour at minute 42", "time": "42 * * * *", "additionalConditions": [], "never": [], "targetOff": false }, { "active": false, "name": "At 22:00 on every day-of-week from Monday through Friday", "time": "0 22 * * 1-5", "additionalConditions": [], "never": [], "targetOff": false }, { "active": false, "name": "At 04:05 on Sunday", "time": "5 4 * * sun", "additionalConditions": [], "never": [], "targetOff": false }, { "active": false, "name": "30 Minutes after Sunset", "time": "sunset+30", "additionalConditions": [], "never": [], "targetOff": false } ], "tableTargetDevices": [ { "active": true, "name": "Wohnzimmer Schreibtischlampe", "onState": "hm-rpc.1.OEQ0478213.1.STATE", "onValue": "true", "offState": "hm-rpc.1.OEQ0478213.1.STATE", "offValue": "false" }, { "active": true, "name": "Wohnzimmer Ecklampe", "onState": "hm-rpc.1.OEQ0478215.1.STATE", "onValue": "true", "offState": "hm-rpc.1.OEQ0478215.1.STATE", "offValue": "false" }, { "active": true, "name": "Wohnzimmer Tischlampe", "onState": "zigbee.0.14b457fffe2be766.state", "onValue": "true", "offState": "zigbee.0.14b457fffe2be766.state", "offValue": "false" }, { "active": false, "name": "Bathroom Light", "onState": "smartcontrol.0.Test.light.Bathroom", "onValue": "true", "offState": "smartcontrol.0.Test.light.Bathroom", "offValue": "false" }, { "active": false, "name": "Bathroom Radio", "onState": "smartcontrol.0.Test.radio.Bathroom", "onValue": "Smooth Jazz", "offState": "smartcontrol.0.Test.radio.Bathroom", "offValue": "Musik aus" }, { "active": false, "name": "Hallway Light", "onState": "smartcontrol.0.Test.light.Hallway", "onValue": "true", "offState": "smartcontrol.0.Test.light.Hallway", "offValue": "false" }, { "active": false, "name": "Relax Area Ceiling Light", "onState": "smartcontrol.0.Test.light.RelaxAreaCeiling", "onValue": "true", "offState": "smartcontrol.0.Test.light.RelaxAreaCeiling", "offValue": "false" }, { "active": false, "name": "Relax Area Wall Light", "onState": "smartcontrol.0.Test.light.RelaxAreaWall", "onValue": "true", "offState": "smartcontrol.0.Test.light.RelaxAreaWall", "offValue": "false" } ], "tableCombinedDevices": [], "tableZones": [ { "active": true, "name": "Wohnzimmer", "triggers": [ "Motion Wohnzimmer Süd", "Motion Wohnzimmer Nord" ], "targets": [ "Wohnzimmer Schreibtischlampe", "Wohnzimmer Ecklampe", "Wohnzimmer Tischlampe" ] }, { "active": false, "name": "Wohnzimmer #1", "triggers": [ "60 Minuten vor Sonnenuntergang" ], "targets": [ "Wohnzimmer Schreibtischlampe", "Wohnzimmer Ecklampe", "Wohnzimmer Tischlampe" ] }, { "active": false, "name": "Wohnzimmer #2", "triggers": [ "30 Minuten vor Sonnenuntergang" ], "targets": [ "Wohnzimmer Schreibtischlampe" ] }, { "active": false, "name": "Hallway", "triggers": [ "Motion Hallway Sensor #1", "Motion Hallway Sensor #2", "Wall Switch Hallway #1", "Wall Switch Hallway #2" ], "targets": [ "Hallway Light" ] }, { "active": false, "name": "Bathroom Ground Floor", "triggers": [ "Motion Bathroom", "Wall Switch Bathroom" ], "targets": [ "Bathroom Light", "Bathroom Radio" ] }, { "active": false, "name": "Relax Area", "triggers": [ "Relax Area Person Sits Indicator" ], "targets": [ "Relax Area Ceiling Light", "Relax Area Wall Light" ] } ], "tableConditions": [ { "active": true, "name": "Haustür geschlossen", "conditionState": "hm-rpc.1.NEQ1480228.1.STATE", "conditionValue": "false" }, { "active": true, "name": "Jemand Anwesend", "conditionState": "0_userdata.0.Anwesenheit.Anwesenheit", "conditionValue": "true" }, { "active": true, "name": "Niemand Anwesend", "conditionState": "0_userdata.0.Anwesenheit.Anwesenheit", "conditionValue": "false" }, { "active": true, "name": "Feiertag Heute", "conditionState": "feiertage.0.heute.boolean", "conditionValue": "true" }, { "active": true, "name": "Feiertag Morgen", "conditionState": "feiertage.0.morgen.boolean", "conditionValue": "true" }, { "active": false, "name": "Public Holiday Today", "conditionState": "smartcontrol.0.Test.condition.isHolidayToday", "conditionValue": "true" }, { "active": false, "name": "Is Front Door Locked?", "conditionState": "smartcontrol.0.Test.condition.isFrontDoorLocked", "conditionValue": "true" }, { "active": false, "name": "No one is present", "conditionState": "smartcontrol.0.Test.condition.isAnyonePresent", "conditionValue": "false" }, { "active": false, "name": "One or more are present", "conditionState": "smartcontrol.0.Test.condition.isAnyonePresent", "conditionValue": "true" } ], "tableSchedules": [ { "active": true, "name": "Wohnzimmer", "start": "08:00", "end": "22:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "additionalConditions": [ "Jemand Anwesend" ], "never": [ "Niemand Anwesend" ] }, { "active": false, "name": "Relax Area", "start": "sunset+30", "end": "sunrise", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": true, "sun": true, "additionalConditions": [ "One or more are present" ], "never": [] }, { "active": false, "name": "Hallway", "start": "sunset-20", "end": "22:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": false, "sun": false, "additionalConditions": [ "One or more are present" ], "never": [ "Public Holiday Today" ] }, { "active": false, "name": "Hallway", "start": "sunset-20", "end": "1:00", "mon": false, "tue": false, "wed": false, "thu": false, "fri": false, "sat": true, "sun": true, "additionalConditions": [ "One or more are present" ], "never": [] }, { "active": false, "name": "Bathroom Ground Floor", "start": "06:00", "end": "09:00", "mon": true, "tue": true, "wed": true, "thu": true, "fri": true, "sat": false, "sun": false, "additionalConditions": [ "Public Holiday Today" ], "never": [ "No one is present" ] }, { "active": false, "name": "Bathroom Ground Floor", "start": "08:00", "end": "11:00", "mon": false, "tue": false, "wed": false, "thu": false, "fri": false, "sat": true, "sun": true, "additionalConditions": [], "never": [ "No one is present" ] } ] } } -
@Mic ich habe noch eine Idee gehabt für die pir Schaltung.
Wenn Bewegung kurz. Z. B. 3 Minuten. Dann Licht nach 5 Minuten abschalten.
Wenn Bewegung länger. Z. B. 15 Minuten. Licht für 30 Minuten an lassen. -
Was mache ich falsch?

Habe alle Datenpunkte gelöscht. Es werden jedoch meine erstellten nicht erzeugt.

erledigt hatte nicht den Datenpunkt zum ausschalten angegeben.
-
Neues Problem.
Es werden die eingestellten Zeiten ignoriert. Es werden immer beide Zonen aktiviert.
Siehe Screenshots:




Habe ich etwas falsch verstanden?
-
Ein toller Adapter und Entwicklungsarbeit!

Ich habe damit angefangen, meine Blockly Skripten zu ersetzen und konnte soweit eine Menge abschaffen. Was mir noch fehlt ist die Möglichkeit die Zielgeräte mit einen Anderen Auslöser (zB Wippschalter) zu toggeln (umshalten wie in Blockly). Wäre es möglich, eine Option "toggle" bei den Auslöser einzubauen? Danke!
-
@Mic bin heut auch endlich mal dazu gekommen, da ich aber bisher nur ein paar Lichter integriert hab, füllt sich die Liste der Zielgeräte jedoch recht schnell.
Nur so mal in den Raum geworfen, bei intensiver Nutzung, wird diese List doch recht lang und unübersichtlich. Gäbe es da nicht eine Möglichkeit, eine Art Untermenü anzulegen, so alla "Räume" z.b.? -
@liv-in-sky sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
habe das setting mit json gemacht- magst du lieber bilder des settings ?
Danke, so ist es perfekt.
Konnte es nachvollziehen. Ich musste einiges im Code ändern, damit ein State mehr als einmal als Trigger verwendet werden kann, bislang wurden dann weitere Zeilen ignoriert. Ist nun behoben (noch nicht auf Github, folgt...).@MartyBr sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Der gleiche Fehler kommt bei den Temperaturwerten unterhalb von alias.0 wieder.
Ich poste hier, sobald die nächste Github-Version verfügbar ist. Schau dann bitte noch mal ob es geht, hab einiges ausgebügelt im Code und bin noch an mehreren Sachen und paar Features.
@Christoph1337 sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Wenn Bewegung kurz. Z. B. 3 Minuten. Dann Licht nach 5 Minuten abschalten.
Wenn Bewegung länger. Z. B. 15 Minuten. Licht für 30 Minuten an lassen.Habe es mal in die Wunschliste aufgenommen.
@DocGame sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Wäre es nicht möglich in den DP-Werten neben true, false usw. auch ein Toggle bei den Zielgeräten bzw. Statusänderung beim Auslöser einzubauen.
Ich fände dies bei einigen Projekten äusserst hilfreich....Wie definiert sich ein Toggle, bzw. wie verhält sich ein Toggle-Datenpunkt eines Adapters? Steht der immer auf true, oder wechselt dann auf false?
@Cristian sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Was mir noch fehlt ist die Möglichkeit die Zielgeräte mit einen Anderen Auslöser (zB Wippschalter) zu toggeln (umshalten wie in Blockly). Wäre es möglich, eine Option "toggle" bei den Auslöser einzubauen? Danke!
Noch mal Toggle
Wie funktioniert denn so ein Toggle aus "Datenpunkt-Sicht"?@Michael-Sauer sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Es werden die eingestellten Zeiten ignoriert. Es werden immer beide Zonen aktiviert.
Schau ich mir an und melde mich.
@crunchip sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Nur so mal in den Raum geworfen, bei intensiver Nutzung, wird diese List doch recht lang und unübersichtlich. Gäbe es da nicht eine Möglichkeit, eine Art Untermenü anzulegen, so alla "Räume" z.b.?
Guter Punkt, gefällt mir auch noch nicht so gut.
Nehme ich auf die Liste.Übrigens, was schon mal geht, aber dir jetzt nicht hilft: Du setzt Punkte, also bei "Geräte-Name" z.B.
Flur EG.Lichter.Wandlicht 1.

Nach dem Speichern legt der Adapter dies als verlinkten Datenpunkt zu den originalen Datenpunkten an:

Da hat man schon mal eine "Ordner-Struktur". Ändert sich (in diesem Beispiel) der shelly.0-Datenpunkt, so ändert sichsmartcontrol.0.targetDevices.Flur EG.Lichter.Wandlicht 1automatisch, und umgekehrt.Hilft dir nur (noch) nicht dann bei der Auswahl der Zielgeräte...
-
Neues Problem.
Es werden die eingestellten Zeiten ignoriert. Es werden immer beide Zonen aktiviert.
Siehe Screenshots:




Habe ich etwas falsch verstanden?
@Michael-Sauer sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
Es werden die eingestellten Zeiten ignoriert. Es werden immer beide Zonen aktiviert.
Poste mal bitte in Code-Tags den Log-Auszug (Adapter-Instanz auf Log-Level "debug" stellen).
-
@Mic
Das hier wirft er aus:

Ich glaube, das betrifft fast alle nördlich von Hannover, insbesondere die Nordlichter.
@MartyBr sagte in Aufruf: Neuen SmartControl-Adapter 0.1.0-alpha.x testen:
@Mic
Das hier wirft er aus:

Ich glaube, das betrifft fast alle nördlich von Hannover, insbesondere die Nordlichter.
Hab jetzt diese Option eingebaut (standardmäßig aktiviert):

Noch nicht auf Github, folgt bald.
Hab mal so auf http://suncalc.net/ geschaut und ich denke night=0:00 und nightEnd=2:00 ist ein guter "Kompromiss".
So viel geschalten – in Abhängigkeit der Helligkeit draußen – wird je zu der Zeit nicht
Wer mag, kann ja noch einen Helligkeitssensor einbinden 

-
Was noch fehlte, ist die Einbindung mehrerer Bewegungsmelder in eine Zone.
Ok, ging bisher natürlich, aber jetzt smarter integriert;- (Mic-M) New feature: If you are using multiple motion sensors for a zone: whenever a motion device triggers, the turn off timer is being stopped and a new timer is set per the latest motion sensor.
Das bedeutet:
Wenn ihr mehrere Bewegungsmelder in einer Zone habt, und- Bewegungsmelder A löst aus um 19:00 (3 Min = Abschaltung 19:03)
- Bewegungsmelder B löst aus um 19:02:30 (3 Min = Abschaltung um 19:05:30)
...dann wird der Timer von Bewegungsmelder A gelöscht und frisch gesetzt (also quasi verlängert) auf 19:05:30. Das ganze Spiel geht so weiter, bis halt kein Bewegungsmelder der Zone mehr auslöst.
Das ist einer der Vorteile, die die Zonen dieses Adapters so bringen...Noch nicht auf Github, folgt bald.
-
Was noch fehlte, ist die Einbindung mehrerer Bewegungsmelder in eine Zone.
Ok, ging bisher natürlich, aber jetzt smarter integriert;- (Mic-M) New feature: If you are using multiple motion sensors for a zone: whenever a motion device triggers, the turn off timer is being stopped and a new timer is set per the latest motion sensor.
Das bedeutet:
Wenn ihr mehrere Bewegungsmelder in einer Zone habt, und- Bewegungsmelder A löst aus um 19:00 (3 Min = Abschaltung 19:03)
- Bewegungsmelder B löst aus um 19:02:30 (3 Min = Abschaltung um 19:05:30)
...dann wird der Timer von Bewegungsmelder A gelöscht und frisch gesetzt (also quasi verlängert) auf 19:05:30. Das ganze Spiel geht so weiter, bis halt kein Bewegungsmelder der Zone mehr auslöst.
Das ist einer der Vorteile, die die Zonen dieses Adapters so bringen...Noch nicht auf Github, folgt bald.
-
Was noch fehlte, ist die Einbindung mehrerer Bewegungsmelder in eine Zone.
Ok, ging bisher natürlich, aber jetzt smarter integriert;- (Mic-M) New feature: If you are using multiple motion sensors for a zone: whenever a motion device triggers, the turn off timer is being stopped and a new timer is set per the latest motion sensor.
Das bedeutet:
Wenn ihr mehrere Bewegungsmelder in einer Zone habt, und- Bewegungsmelder A löst aus um 19:00 (3 Min = Abschaltung 19:03)
- Bewegungsmelder B löst aus um 19:02:30 (3 Min = Abschaltung um 19:05:30)
...dann wird der Timer von Bewegungsmelder A gelöscht und frisch gesetzt (also quasi verlängert) auf 19:05:30. Das ganze Spiel geht so weiter, bis halt kein Bewegungsmelder der Zone mehr auslöst.
Das ist einer der Vorteile, die die Zonen dieses Adapters so bringen...Noch nicht auf Github, folgt bald.
