activate_scenario.sh
Mon Aug 26 12:19:35 CEST 2024
scenario: pcON
origin: dhcpcommit.sh-pchai7x

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

scenario: 'Schreibtisch Thomas EIN-schalten' - 'pcON' - 'pcon'

Thomas Schreibtischlampe (/srv/www/viehai/shelly/log_scenarios/2024/08/26/_0.log)

vorher: 12:19:35.795

http://192.168.12.120/relay/0?turn=on
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "http"

nachher: 12:19:36.849
Dauer: 1054 msec phName: 'origin:'dhcpcommit.sh-pchai7x''


scenario: 'Schreibtisch Thomas EIN-schalten' - 'pcON' - 'pcon'

urls : 1
vorher : 12:19:35.744
nachher: 12:19:36.856
Dauer : 1114 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/08/26//scene_pcON_20240826_121935.txt'


syslog

Aug 26 12:16:01 srv4hai CRON[30165]: (root) CMD (/etc/linetest/linetest.sh)
Aug 26 12:16:02 srv4hai ping_SP[21533]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1724667362 - 'ping_SP_0'
Aug 26 12:16:02 srv4hai ping_SP[21533]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug 26 12:16:32 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30191, secured, session=
Aug 26 12:16:32 srv4hai dovecot: imap(miglincit)<30191>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 26 12:17:01 srv4hai CRON[30195]: (root) CMD (/etc/linetest/linetest.sh)
Aug 26 12:17:01 srv4hai CRON[30196]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Aug 26 12:17:15 srv4hai ping_SP[21533]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1724667435 - 'ping_SP_0'
Aug 26 12:17:15 srv4hai ping_SP[21533]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug 26 12:17:47 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Aug 26 12:17:47 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Aug 26 12:17:47 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Aug 26 12:17:47 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Aug 26 12:17:47 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Aug 26 12:17:47 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Aug 26 12:17:47 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f932c06a420 192.168.12.252#37185/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#41271/key rndc-key: signer "rndc-key" approved
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#41271/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#41271/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#41271/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#41271/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Aug 26 12:17:47 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#36713/key rndc-key: signer "rndc-key" approved
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#36713/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Aug 26 12:17:47 srv4hai named[30406]: client @0x7f93300d0220 192.168.12.252#36713/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.
Aug 26 12:17:47 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Aug 26 12:17:47 srv4hai common[30231]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Aug 26 12:17:47 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Aug 26 12:17:47 srv4hai common[30250]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Aug 26 12:17:47 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=28.600000&hum=48.700000&id=C049EF8AC9D8&batt=100&volt=6.560000
Aug 26 12:17:47 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/08/shelly-39_20240826.csv'
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Aug 26 12:17:47 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}'
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Aug 26 12:17:47 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}'
Aug 26 12:17:47 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 '.''
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Aug 26 12:17:47 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 '.''
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Aug 26 12:17:47 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Aug 26 12:17:47 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 28.6° - 48.7%
Aug 26 12:17:47 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: 28.6°/28° - 48.7%/49% - SAVED
Aug 26 12:17:47 srv4hai ht_shelly.sh: SHELLY C049EF8AC9D8 / shelly-39 / Wetterwerte Balkon: batt='100'°
Aug 26 12:17:47 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-08-26T10:17:47.899Z",#012    "content": {#012      "temp": 28.6,#012      "hum": 48.7,#012      "batt": 100,#012      "csvF": "shelly-39_20240826.csv"#012    },#012    "transaction": "c3fa0e5e-879e-4d9e-a73c-d5587835c4ba"#012  }#012}'°
Aug 26 12:18:01 srv4hai CRON[30396]: (root) CMD (/etc/linetest/linetest.sh)
Aug 26 12:18:28 srv4hai ping_SP[21533]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1724667508 - 'ping_SP_0'
Aug 26 12:18:28 srv4hai ping_SP[21533]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug 26 12:18:40 srv4hai activate_scenario[30443]: SHELLY scenario: 'buero_UM(buero_um)' started
Aug 26 12:18:40 srv4hai activate_scenario[30443]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'
Aug 26 12:18:40 srv4hai activate_scenario[30443]: SHELLY scenario: 'buero_UM(buero_um)' TO BE EXECUTED, shelly-40:'Thomas Büro Licht'
Aug 26 12:18:40 srv4hai postfix/pickup[23075]: 0DC746345B: uid=33 from=
Aug 26 12:18:40 srv4hai postfix/cleanup[30496]: 0DC746345B: message-id=<20240826101840.0DC746345B@mail.viehai.at>
Aug 26 12:18:40 srv4hai postfix/qmgr[8566]: 0DC746345B: from=, size=8754, nrcpt=1 (queue active)
Aug 26 12:18:40 srv4hai activate_scenario[30443]: SHELLY: scenario: 'buero_UM(buero_um)'-'shelly-08'-'Thomas Büro Regallicht' --> '0?turn=toggle'
Aug 26 12:18:40 srv4hai proc_url[30514]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/08/26/_0.log' - shellyUsage:'Thomas Büro Regallicht' - scUrl:'http://192.168.12.108/relay/0?turn=toggle' - phName:'shelly-40:'Thomas Büro Licht''
Aug 26 12:18:40 srv4hai postfix/local[30509]: 0DC746345B: to=, orig_to=, relay=local, delay=0.03, delays=0.02/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "null")
Aug 26 12:18:40 srv4hai postfix/cleanup[30496]: 12EAD6345C: message-id=<20240826101840.12EAD6345C@mail.viehai.at>
Aug 26 12:18:40 srv4hai postfix/bounce[30510]: 0DC746345B: sender non-delivery notification: 12EAD6345C
Aug 26 12:18:40 srv4hai postfix/qmgr[8566]: 12EAD6345C: from=<>, size=10676, nrcpt=1 (queue active)
Aug 26 12:18:40 srv4hai postfix/qmgr[8566]: 0DC746345B: removed
Aug 26 12:18:40 srv4hai postfix/local[30509]: 12EAD6345C: to=, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Aug 26 12:18:40 srv4hai postfix/qmgr[8566]: 12EAD6345C: removed
Aug 26 12:18:40 srv4hai activate_scenario[30443]: SHELLY: scenario: 'buero_UM(buero_um)'-'shelly-40'-'Thomas Büro Licht' --> '0?turn=toggle'
Aug 26 12:18:40 srv4hai proc_url[30526]: SHELLY: OF:'/srv/www/viehai/shelly/log_scenarios/2024/08/26/_1.log' - shellyUsage:'Thomas Büro Licht' - scUrl:'http://192.168.12.140/relay/0?turn=toggle' - phName:'shelly-40:'Thomas Büro Licht''
Aug 26 12:18:40 srv4hai activate_scenario[30443]: SHELLY scenario: 'buero_UM(buero_um)' took 85 msec, shelly-40:'Thomas Büro Licht'
Aug 26 12:19:00 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30570, secured, session=
Aug 26 12:19:00 srv4hai dovecot: imap(miglincit)<30570>: Logged out in=443 out=75212 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=522 body_count=1 body_bytes=72943
Aug 26 12:19:01 srv4hai CRON[30572]: (root) CMD (/etc/linetest/linetest.sh)
Aug 26 12:19:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30577, secured, session=
Aug 26 12:19:01 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30579, secured, session=
Aug 26 12:19:02 srv4hai dovecot: imap(miglincit)<30577>: Logged out in=676 out=36242 deleted=0 expunged=0 trashed=6 hdr_count=6 hdr_bytes=4018 body_count=0 body_bytes=0
Aug 26 12:19:02 srv4hai dovecot: imap(miglincit)<30579>: Logged out in=443 out=24608 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=354 body_count=1 body_bytes=22613
Aug 26 12:19:02 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30581, secured, session=
Aug 26 12:19:02 srv4hai dovecot: imap(miglincit)<30581>: Logged out in=443 out=1910 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=244 body_count=1 body_bytes=126
Aug 26 12:19:05 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30584, secured, session=
Aug 26 12:19:05 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30586, secured, session=
Aug 26 12:19:05 srv4hai dovecot: imap(miglincit)<30586>: Logged out in=395 out=2064 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=395 body_count=1 body_bytes=196
Aug 26 12:19:05 srv4hai dovecot: imap(miglincit)<30584>: Logged out in=676 out=36778 deleted=0 expunged=0 trashed=6 hdr_count=7 hdr_bytes=4458 body_count=0 body_bytes=0
Aug 26 12:19:06 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30589, secured, session=
Aug 26 12:19:06 srv4hai dovecot: imap(miglincit)<30589>: Logged out in=397 out=24515 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=354 body_count=1 body_bytes=22613
Aug 26 12:19:08 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30593, secured, session=
Aug 26 12:19:08 srv4hai dovecot: imap(miglincit)<30593>: Logged out in=395 out=2056 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=395 body_count=1 body_bytes=196
Aug 26 12:19:09 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30595, secured, session=
Aug 26 12:19:09 srv4hai dovecot: imap(miglincit)<30595>: Logged out in=606 out=30933 deleted=0 expunged=0 trashed=1 hdr_count=1 hdr_bytes=165 body_count=0 body_bytes=0
Aug 26 12:19:32 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=30604, secured, session=
Aug 26 12:19:33 srv4hai dovecot: imap(miglincit)<30604>: Logged out in=639 out=1146 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 26 12:19:35 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/dhcpcommit.sh
Aug 26 12:19:35 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.10
Aug 26 12:19:35 srv4hai dhcpd[30731]: execute_statement argv[2] = pchai7x
Aug 26 12:19:35 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.10 from 70:54:d2:7b:fe:a7 via enp2s0
Aug 26 12:19:35 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.10 to 70:54:d2:7b:fe:a7 via enp2s0
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f9350694cd0 192.168.12.252#52287/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: pchai7x.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f9348054f20 192.168.12.252#39515/key rndc-key: signer "rndc-key" approved
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f9348054f20 192.168.12.252#39515/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'pchai7x.viehai.at' TXT
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f9348054f20 192.168.12.252#39515/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'pchai7x.viehai.at' TXT "001e3ad86ca86e10b8e2aaf2e2ade54f52"
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f9348054f20 192.168.12.252#39515/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'pchai7x.viehai.at' A
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f9348054f20 192.168.12.252#39515/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'pchai7x.viehai.at' A 192.168.12.10
Aug 26 12:19:35 srv4hai dhcpd[30731]: Added new forward map from pchai7x.viehai.at to 192.168.12.10
Aug 26 12:19:35 srv4hai dhcpcommit.sh: SHELLY ip:'192.168.12.10'(10) device 'pchai7x'
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f93100c3be0 192.168.12.252#43385/key rndc-key: signer "rndc-key" approved
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f93100c3be0 192.168.12.252#43385/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '10.12.168.192.in-addr.arpa' PTR
Aug 26 12:19:35 srv4hai named[30406]: client @0x7f93100c3be0 192.168.12.252#43385/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '10.12.168.192.in-addr.arpa' PTR pchai7x.viehai.at.
Aug 26 12:19:35 srv4hai dhcpd[30731]: Added reverse map from 10.12.168.192.in-addr.arpa. to pchai7x.viehai.at
Aug 26 12:19:35 srv4hai activate_scenario[30611]: SHELLY scenario: 'pcON(pcon)' started
Aug 26 12:19:35 srv4hai activate_scenario[30611]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - origin:'dhcpcommit.sh-pchai7x'

finished