activate_scenario.sh
Sun Apr 14 09:40:12 CEST 2024
scenario: sekr_UM
source: 192.168.12.101

'day' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'null'

scenario: 'Sekretär Licht UM-schalten' - 'sekr_UM' - 'sekr_um'

Licht Sekretär (/srv/www/viehai/shelly/log_scenarios/2024/04/14/_0.log)

vorher: 09:40:12.673

http://192.168.12.123/relay/0?turn=toggle
  "ison": false,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 09:40:12.699
Dauer: 26 msec phName: 'shelly-01:'Wandlicht beim Esstisch''


scenario: 'Sekretär Licht UM-schalten' - 'sekr_UM' - 'sekr_um'

urls : 1
vorher : 09:40:12.651
nachher: 09:40:12.705
Dauer : 54 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/04/14//scene_sekr_UM_20240414_094012.txt'


syslog

Apr 14 09:37:01 srv4hai CRON[28777]: (root) CMD (/etc/linetest/linetest.sh)
Apr 14 09:37:16 srv4hai dhcpd[28085]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Apr 14 09:37:16 srv4hai dhcpd[28085]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Apr 14 09:37:16 srv4hai dhcpd[28085]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Apr 14 09:37:16 srv4hai dhcpd[28085]: execute_statement argv[1] = 192.168.12.139
Apr 14 09:37:16 srv4hai dhcpd[28085]: execute_statement argv[2] = shelly-39
Apr 14 09:37:16 srv4hai dhcpd[28085]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Apr 14 09:37:16 srv4hai dhcpd[28085]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f93100604b0 192.168.12.252#38697/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f930801c730 192.168.12.252#57605/key rndc-key: signer "rndc-key" approved
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f930801c730 192.168.12.252#57605/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f930801c730 192.168.12.252#57605/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f930801c730 192.168.12.252#57605/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f930801c730 192.168.12.252#57605/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Apr 14 09:37:16 srv4hai dhcpd[28085]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f9304041a30 192.168.12.252#41497/key rndc-key: signer "rndc-key" approved
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f9304041a30 192.168.12.252#41497/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Apr 14 09:37:16 srv4hai named[15509]: client @0x7f9304041a30 192.168.12.252#41497/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '139.12.168.192.in-addr.arpa' PTR shelly-39.viehai.at.
Apr 14 09:37:16 srv4hai dhcpd[28085]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Apr 14 09:37:16 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Apr 14 09:37:16 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Apr 14 09:37:16 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Apr 14 09:37:16 srv4hai conf_shelly.sh: SHELLY:'shelly-39' 'conf(0)' - 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}'
Apr 14 09:37:16 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -X -POST -d 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}' http://192.168.12.139/rpc | jq -r '.''
Apr 14 09:37:16 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Apr 14 09:37:17 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Apr 14 09:37:19 srv4hai common[28837]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Apr 14 09:37:19 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=20.300000&hum=48.400000&id=C049EF8AC9D8&batt=100&volt=6.770000
Apr 14 09:37:19 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/04/shelly-39_20240414.csv'
Apr 14 09:37:19 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Apr 14 09:37:19 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Apr 14 09:37:19 srv4hai conf_shelly.sh: SHELLY:'shelly-39' 'conf(0)' - 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}'
Apr 14 09:37:19 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-cmd: 'curl --connect-timeout 3 --silent -X -POST -d 'settings/actions?index=0&name=report_url&enabled=true&urls[]=http://www.viehai.at/shelly/ht_shelly.shtml?gen=2&temp=${ev.tC}&hum=${status["humidity:0"].rH}&id=${config.sys.device.mac}' http://192.168.12.139/rpc | jq -r '.''
Apr 14 09:37:19 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Apr 14 09:37:19 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Apr 14 09:37:19 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 20.3° - 48.4%
Apr 14 09:37:19 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 20.3°/19.7° - 48.4%/49.6% - SAVED
Apr 14 09:37:19 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Apr 14 09:37:20 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: dweetIO='{#012  "this": "succeeded",#012  "by": "dweeting",#012  "the": "dweet",#012  "with": {#012    "thing": "viehai-39",#012    "created": "2024-04-14T07:37:20.394Z",#012    "content": {#012      "temp": 20.3,#012      "hum": 48.4,#012      "batt": 100,#012      "csvF": "shelly-39_20240414.csv"#012    },#012    "transaction": "88dae1d7-c794-46bf-bda4-76201099ed22"#012  }#012}'°
Apr 14 09:37:29 srv4hai ping_SP[26360]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1713080249 - 'ping_SP_1'
Apr 14 09:37:29 srv4hai ping_SP[26360]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 14 09:38:00 srv4hai ping_SP[16534]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1713080280 - 'ping_SP_0'
Apr 14 09:38:00 srv4hai ping_SP[16534]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 14 09:38:01 srv4hai CRON[28984]: (root) CMD (/etc/linetest/linetest.sh)
Apr 14 09:38:43 srv4hai ping_SP[26360]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1713080323 - 'ping_SP_1'
Apr 14 09:38:43 srv4hai ping_SP[26360]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 14 09:38:53 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=29016, secured, session=
Apr 14 09:38:53 srv4hai dovecot: imap(miglincit)<29016>: Logged out in=212 out=1286 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Apr 14 09:39:00 srv4hai systemd[1]: Starting Clean php session files...
Apr 14 09:39:00 srv4hai systemd[1]: phpsessionclean.service: Succeeded.
Apr 14 09:39:00 srv4hai systemd[1]: Started Clean php session files.
Apr 14 09:39:01 srv4hai CRON[29113]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Apr 14 09:39:01 srv4hai CRON[29114]: (root) CMD (/etc/linetest/linetest.sh)
Apr 14 09:39:13 srv4hai ping_SP[16534]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1713080353 - 'ping_SP_0'
Apr 14 09:39:13 srv4hai ping_SP[16534]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Apr 14 09:39:50 srv4hai dhcpd[28085]: DHCPDISCOVER from 84:cc:a8:a8:55:7d via enp2s0
Apr 14 09:39:50 srv4hai dhcpd[28085]: DHCPOFFER on 192.168.12.102 to 84:cc:a8:a8:55:7d via enp2s0
Apr 14 09:39:50 srv4hai dhcpd[28085]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Apr 14 09:39:50 srv4hai dhcpd[28085]: execute_statement argv[1] = 192.168.12.102
Apr 14 09:39:50 srv4hai dhcpd[28085]: execute_statement argv[2] = shelly-02
Apr 14 09:39:50 srv4hai dhcpd[28085]: DHCPREQUEST for 192.168.12.102 (192.168.12.252) from 84:cc:a8:a8:55:7d via enp2s0
Apr 14 09:39:50 srv4hai dhcpd[28085]: DHCPACK on 192.168.12.102 to 84:cc:a8:a8:55:7d via enp2s0
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f931c67a760 192.168.12.252#49219/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-02.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f9318030580 192.168.12.252#41705/key rndc-key: signer "rndc-key" approved
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f9318030580 192.168.12.252#41705/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-02.viehai.at' TXT
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f9318030580 192.168.12.252#41705/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-02.viehai.at' TXT "005dc8ffbb18e92d4c1a5981a9354b73fe"
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f9318030580 192.168.12.252#41705/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-02.viehai.at' A
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f9318030580 192.168.12.252#41705/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-02.viehai.at' A 192.168.12.102
Apr 14 09:39:50 srv4hai dhcpd[28085]: Added new forward map from shelly-02.viehai.at to 192.168.12.102
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f931c166000 192.168.12.252#41983/key rndc-key: signer "rndc-key" approved
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f931c166000 192.168.12.252#41983/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '102.12.168.192.in-addr.arpa' PTR
Apr 14 09:39:50 srv4hai named[15509]: client @0x7f931c166000 192.168.12.252#41983/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '102.12.168.192.in-addr.arpa' PTR shelly-02.viehai.at.
Apr 14 09:39:50 srv4hai dhcpd[28085]: Added reverse map from 102.12.168.192.in-addr.arpa. to shelly-02.viehai.at
Apr 14 09:39:50 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-02' - shIP/2:'' workdir:'/srv/www/viehai/shelly' perform:'conf'
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-02' - shIP/2:'192.168.12.102'
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY: usage/name 'Balkon-Licht' already set for '192.168.12.102'
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' 'conf(0)' - allready transmitted - skipping
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' 'conf(1)' - allready transmitted - skipping
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' 'conf(2)' - allready transmitted - skipping
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' 'conf(3)' - allready transmitted - skipping
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' 'conf(4)' - allready transmitted - skipping
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' out:0 ON : MISSING
Apr 14 09:39:51 srv4hai conf_shelly.sh: SHELLY:'shelly-02' out:0 OFF: MISSING
Apr 14 09:39:56 srv4hai ping_SP[26360]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1713080396 - 'ping_SP_1'
Apr 14 09:39:56 srv4hai ping_SP[26360]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Apr 14 09:40:01 srv4hai CRON[29286]: (root) CMD (/etc/linetest/linetest.sh)
Apr 14 09:40:01 srv4hai CRON[29287]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Apr 14 09:40:01 srv4hai common[29288]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Apr 14 09:40:01 srv4hai meter.sh: SHELLY meter.sh started
Apr 14 09:40:02 srv4hai activate_scenario[29350]: SHELLY scenario: 'nasszeile_um(nasszeile_um)' started
Apr 14 09:40:02 srv4hai activate_scenario[29350]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-28:'Schalter Nasszeile'
Apr 14 09:40:02 srv4hai activate_scenario[29350]: SHELLY scenario: 'nasszeile_um(nasszeile_um)' TO BE EXECUTED, shelly-28:'Schalter Nasszeile'
Apr 14 09:40:02 srv4hai postfix/pickup[22839]: 0BDB26022F: uid=33 from=
Apr 14 09:40:02 srv4hai postfix/cleanup[29423]: 0BDB26022F: message-id=<20240414074002.0BDB26022F@mail.viehai.at>
Apr 14 09:40:02 srv4hai postfix/qmgr[15291]: 0BDB26022F: from=, size=12542, nrcpt=1 (queue active)
Apr 14 09:40:02 srv4hai activate_scenario[29350]: SHELLY: scenario: 'nasszeile_um(nasszeile_um)'-'shelly-16'-'Küche Licht Naßzeile' --> '0?turn=toggle&brightness=25'
Apr 14 09:40:02 srv4hai proc_url[29446]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/04/14/_0.log' - shellyUsage:'Küche Licht Naßzeile' - scUrl:'http://192.168.12.116/white/0?turn=toggle&brightness=25' - phName:'shelly-28:'Schalter Nasszeile''
Apr 14 09:40:02 srv4hai postfix/local[29439]: 0BDB26022F: to=, orig_to=, relay=local, delay=0.06, delays=0.04/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "null")
Apr 14 09:40:02 srv4hai postfix/cleanup[29423]: 14B8960230: message-id=<20240414074002.14B8960230@mail.viehai.at>
Apr 14 09:40:02 srv4hai postfix/bounce[29440]: 0BDB26022F: sender non-delivery notification: 14B8960230
Apr 14 09:40:02 srv4hai postfix/qmgr[15291]: 14B8960230: from=<>, size=14424, nrcpt=1 (queue active)
Apr 14 09:40:02 srv4hai postfix/qmgr[15291]: 0BDB26022F: removed
Apr 14 09:40:02 srv4hai activate_scenario[29350]: SHELLY: scenario: 'nasszeile_um(nasszeile_um)'-'shelly-16'-'Küche Licht Naßzeile' --> '1?turn=toggle&brightness=25'
Apr 14 09:40:02 srv4hai proc_url[29465]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/04/14/_1.log' - shellyUsage:'Küche Licht Naßzeile' - scUrl:'http://192.168.12.116/white/1?turn=toggle&brightness=25' - phName:'shelly-28:'Schalter Nasszeile''
Apr 14 09:40:02 srv4hai meter.sh: SHELLY 'shelly-29/Schalter Herdzeile' - type: 'shelly-i3' ignoring
Apr 14 09:40:02 srv4hai postfix/local[29439]: 14B8960230: to=, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Apr 14 09:40:02 srv4hai postfix/qmgr[15291]: 14B8960230: removed
Apr 14 09:40:02 srv4hai meter.sh: SHELLY 'shelly-28/Schalter Nasszeile' - type: 'shelly-i3' ignoring
Apr 14 09:40:02 srv4hai activate_scenario[29350]: SHELLY scenario: 'nasszeile_um(nasszeile_um)' took 186 msec, shelly-28:'Schalter Nasszeile'
Apr 14 09:40:05 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Apr 14 09:40:05 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Apr 14 09:40:05 srv4hai meter.sh: SHELLY 'shelly-37/Klima Büro' - type: 'shelly-ht' ignoring
Apr 14 09:40:05 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Apr 14 09:40:05 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Apr 14 09:40:08 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 14 09:40:11 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Apr 14 09:40:11 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Apr 14 09:40:11 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Apr 14 09:40:11 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Apr 14 09:40:11 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Apr 14 09:40:11 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Apr 14 09:40:12 srv4hai activate_scenario[30148]: SHELLY scenario: 'sekr_UM(sekr_um)' started
Apr 14 09:40:12 srv4hai activate_scenario[30148]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-01:'Wandlicht beim Esstisch'

finished