War mir nicht sicher wie, aber dank ChatGPT habe ich jetzt die Lösung. Wenn es jemanden hilft, bitte schön…
[{"id":"1cb1a83085ee41b9","type":"group","z":"171fe110d7b0eaf1","name":"","style":{"stroke":"#a4a4a4","fill":"#d1d1d1","fill-opacity":"0.5","label":false},"nodes":["18898efb76769d07","218de2782d03bc90","0b0b32224619b7a7","af67569181f11106","6d01129b3db2a8d3"],"x":14,"y":39,"w":1012,"h":142},{"id":"18898efb76769d07","type":"api-call-service","z":"171fe110d7b0eaf1","g":"1cb1a83085ee41b9","name":"Post ist da...","server":"1046d712.e31c69","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_roberts_handy","areaId":[],"deviceId":[],"entityId":[],"data":"{\"message\":\"Die Post war da...\",\"title\":\"🟢 Briefkasten 🟢\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":930,"y":140,"wires":[[]]},{"id":"218de2782d03bc90","type":"server-state-changed","z":"171fe110d7b0eaf1","g":"1cb1a83085ee41b9","name":"Briefkasten - Vibration erkannt","server":"1046d712.e31c69","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"binary_sensor.zb2_vibration_briefkasten_vibration","entityIdType":"exact","outputInitially":false,"stateType":"num","ifState":"","ifStateType":"num","ifStateOperator":"is","outputOnlyOnStateChange":false,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[],"x":160,"y":140,"wires":[["6d01129b3db2a8d3"]]},{"id":"0b0b32224619b7a7","type":"comment","z":"171fe110d7b0eaf1","g":"1cb1a83085ee41b9","name":"Vibration am Briefkasten","info":"","x":150,"y":80,"wires":[]},{"id":"af67569181f11106","type":"time-range-switch","z":"171fe110d7b0eaf1","g":"1cb1a83085ee41b9","name":"08 - 20 Uhr","lat":"49.44507064020062","lon":"8.515533506870272","startTime":"08:00:00","endTime":"20:00:00","startOffset":0,"endOffset":0,"x":670,"y":140,"wires":[["18898efb76769d07"],[]],"info":"// Get the data from the sensor\n\nvar Solarstrom = global.get('homeassistant.homeAssistant.states[\"sensor.sunny_boy_grid_power\"].state');\n\nif ( Solarstrom == null ) { \n Solarstrom = 0;\n}\n\nmsg.payload = { \"text\": Solarstrom + \"W\", \"icon\": \"52101\", \"textCase\": \"2\", \"color\": \"cece00\" };\n\nreturn msg;"},{"id":"6d01129b3db2a8d3","type":"trigger","z":"171fe110d7b0eaf1","g":"1cb1a83085ee41b9","name":"Disable Sensor","op1":"disable","op2":"enable","op1type":"str","op2type":"str","duration":"10","extend":false,"overrideDelay":false,"units":"min","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":440,"y":140,"wires":[["af67569181f11106"]]},{"id":"1046d712.e31c69","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"","connectionDelay":false,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"","statusSeparator":"","enableGlobalContextStore":false}]