activate_scenario.sh
Mon Sep 2 17:24:32 CEST 2024
scenario: vorraumOn
phoneName: 0

'day' <--> DayTime=checked , NightTime=checked
-> execution of scenario
-> sending email(s) to 'thomas@miglinci.name'

scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/09/02/_0.log)

vorher: 17:24:32.429

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

nachher: 17:24:32.495
Dauer: 67 msec phName: 'phoneName:'0''


scenario: 'Vorzimmer EIN' - 'vorraumOn' - 'vorraumon'

urls : 1
vorher : 17:24:32.410
nachher: 17:24:32.502
Dauer : 91 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/09/02//scene_vorraumOn_20240902_172432.txt'


syslog

Sep  2 17:21:01 srv4hai CRON[25957]: (root) CMD (/etc/linetest/linetest.sh)
Sep  2 17:21:02 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Sep  2 17:21:03 srv4hai fetchmail[1651]: 51381 messages (51381 seen) for tmiglinci at mail.akis.at (-56679543 octets).
Sep  2 17:21:03 srv4hai fetchmail[1651]: 10660 messages (10660 seen) for srozum at mail.akis.at (1283749625 octets).
Sep  2 17:21:04 srv4hai fetchmail[1651]: 25669 messages (25669 seen) for mrozum at mail.akis.at (177799809 octets).
Sep  2 17:21:04 srv4hai fetchmail[1651]: 1141 messages (1141 seen) for admin@bastelstube.wien at pop3.world4you.com (51598561 octets).
Sep  2 17:21:09 srv4hai postfix/anvil[15310]: statistics: max connection rate 1/60s for (smtp:94.141.120.155) at Sep  2 17:12:56
Sep  2 17:21:09 srv4hai postfix/anvil[15310]: statistics: max connection count 1 for (smtp:94.141.120.155) at Sep  2 17:12:56
Sep  2 17:21:09 srv4hai postfix/anvil[15310]: statistics: max cache size 2 at Sep  2 17:16:46
Sep  2 17:21:23 srv4hai postfix/smtpd[25963]: connect from unknown[94.141.120.77]
Sep  2 17:21:23 srv4hai postfix/smtpd[25963]: warning: unknown[94.141.120.77]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep  2 17:21:23 srv4hai postfix/smtpd[25963]: disconnect from unknown[94.141.120.77] ehlo=1 auth=0/1 quit=1 commands=2/3
Sep  2 17:21:45 srv4hai snapd[16680]: storehelpers.go:791: cannot refresh: snap has no updates available: "bare", "core", "core18", "core20", "gnome-3-28-1804", "gtk-common-themes", "mqtt-explorer"
Sep  2 17:22:01 srv4hai CRON[25970]: (root) CMD (/etc/linetest/linetest.sh)
Sep  2 17:22:11 srv4hai postfix/smtpd[25963]: connect from unknown[94.141.120.155]
Sep  2 17:22:11 srv4hai postfix/smtpd[25963]: warning: unknown[94.141.120.155]: SASL LOGIN authentication failed: Invalid authentication mechanism
Sep  2 17:22:11 srv4hai postfix/smtpd[25963]: lost connection after AUTH from unknown[94.141.120.155]
Sep  2 17:22:11 srv4hai postfix/smtpd[25963]: disconnect from unknown[94.141.120.155] ehlo=1 auth=0/1 commands=1/2
Sep  2 17:22:12 srv4hai postfix/qmgr[8566]: B33676345C: from=<>, size=3397, nrcpt=1 (queue active)
Sep  2 17:22:38 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=25983, secured, session=<9BPggiQhwqcAAAAAAAAAAAAAAAAAAAAB>
Sep  2 17:22:38 srv4hai dovecot: imap(miglincit)<25983><9BPggiQhwqcAAAAAAAAAAAAAAAAAAAAB>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Sep  2 17:22:42 srv4hai postfix/smtp[25976]: connect to prtimes.jp[151.101.193.55]:25: Connection timed out
Sep  2 17:23:01 srv4hai CRON[25986]: (root) CMD (/etc/linetest/linetest.sh)
Sep  2 17:23:12 srv4hai postfix/smtp[25976]: connect to prtimes.jp[151.101.1.55]:25: Connection timed out
Sep  2 17:23:42 srv4hai postfix/smtp[25976]: connect to prtimes.jp[151.101.65.55]:25: Connection timed out
Sep  2 17:24:01 srv4hai CRON[25999]: (root) CMD (/etc/linetest/linetest.sh)
Sep  2 17:24:12 srv4hai postfix/smtp[25976]: connect to prtimes.jp[151.101.129.55]:25: Connection timed out
Sep  2 17:24:12 srv4hai postfix/smtp[25976]: B33676345C: to=, relay=none, delay=208522, delays=208402/0.01/120/0, dsn=4.4.1, status=deferred (connect to prtimes.jp[151.101.129.55]:25: Connection timed out)
Sep  2 17:24:21 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:78:29:c0:c2:4e via enp2s0
Sep  2 17:24:21 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep  2 17:24:21 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Sep  2 17:24:21 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.61
Sep  2 17:24:21 srv4hai dhcpd[30731]: execute_statement argv[2] = fpThomas
Sep  2 17:24:21 srv4hai common[26008]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Sep  2 17:24:21 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.61' / 'fpThomas' / '0'
Sep  2 17:24:21 srv4hai common[26022]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Sep  2 17:24:21 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.61 (192.168.12.252) from e8:78:29:c0:c2:4e via enp2s0
Sep  2 17:24:21 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.61 to e8:78:29:c0:c2:4e via enp2s0
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f931c076a00 192.168.12.252#55145/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: fpThomas.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f932c0c9f60 192.168.12.252#34841/key rndc-key: signer "rndc-key" approved
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f932c0c9f60 192.168.12.252#34841/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' TXT
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f932c0c9f60 192.168.12.252#34841/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' TXT "310ebd0eafccd9c2e311facf8a4b0e4ad2"
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f932c0c9f60 192.168.12.252#34841/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'fpThomas.viehai.at' A
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f932c0c9f60 192.168.12.252#34841/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'fpThomas.viehai.at' A 192.168.12.61
Sep  2 17:24:21 srv4hai dhcpd[30731]: Added new forward map from fpThomas.viehai.at to 192.168.12.61
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f93100b4de0 192.168.12.252#48817/key rndc-key: signer "rndc-key" approved
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f93100b4de0 192.168.12.252#48817/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '61.12.168.192.in-addr.arpa' PTR
Sep  2 17:24:21 srv4hai named[30406]: client @0x7f93100b4de0 192.168.12.252#48817/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '61.12.168.192.in-addr.arpa' PTR fpThomas.viehai.at.
Sep  2 17:24:21 srv4hai dhcpd[30731]: Added reverse map from 61.12.168.192.in-addr.arpa. to fpThomas.viehai.at
Sep  2 17:24:21 srv4hai ping_SP[26022]: SHELLY ping_SP.sh started from smartphone, user:'root'
Sep  2 17:24:23 srv4hai dhcpd[30731]: DHCPDISCOVER from c0:49:ef:8a:c9:d8 via enp2s0
Sep  2 17:24:23 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep  2 17:24:23 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Sep  2 17:24:23 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.139
Sep  2 17:24:23 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-39
Sep  2 17:24:23 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.139 (192.168.12.252) from c0:49:ef:8a:c9:d8 via enp2s0
Sep  2 17:24:23 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.139 to c0:49:ef:8a:c9:d8 via enp2s0
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f931c058e00 192.168.12.252#58819/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-39.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#53145/key rndc-key: signer "rndc-key" approved
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#53145/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' TXT
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#53145/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' TXT "314be662bb43914e78b269d3f3bc9f38c7"
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#53145/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-39.viehai.at' A
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f931c067c00 192.168.12.252#53145/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-39.viehai.at' A 192.168.12.139
Sep  2 17:24:23 srv4hai dhcpd[30731]: Added new forward map from shelly-39.viehai.at to 192.168.12.139
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#55181/key rndc-key: signer "rndc-key" approved
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#55181/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '139.12.168.192.in-addr.arpa' PTR
Sep  2 17:24:23 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#55181/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.
Sep  2 17:24:23 srv4hai dhcpd[30731]: Added reverse map from 139.12.168.192.in-addr.arpa. to shelly-39.viehai.at
Sep  2 17:24:23 srv4hai common[26044]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Sep  2 17:24:23 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-39' - shIP/2:'' perform:'conf'
Sep  2 17:24:24 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-39' - shIP/2:'192.168.12.139'
Sep  2 17:24:24 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wetterwerte Balkon' already set for '192.168.12.139'
Sep  2 17:24:24 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}'
Sep  2 17:24:25 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 '.''
Sep  2 17:24:25 srv4hai conf_shelly.sh: SHELLY:'shelly-39' conf(0)-ret: ''
Sep  2 17:24:25 srv4hai conf_shelly.sh: SHELLY:'shelly-39' no WebHook
Sep  2 17:24:29 srv4hai common[26111]: SHELLY common.sh inkludiert von ./ht_shelly.sh
Sep  2 17:24:29 srv4hai ht_shelly.sh: SHELLY - QUERY_STRING: gen=2&temp=31.500000&hum=36.100000&id=C049EF8AC9D8&batt=100&volt=6.550000
Sep  2 17:24:29 srv4hai ht_shelly.sh: SHELLY - storing into '/srv/www/viehai/shelly//wetter/2024/09/shelly-39_20240902.csv'
Sep  2 17:24:29 srv4hai ht_shelly.sh: SHELLY - 'shelly-39_20240902.csv' modifed 373s ago - EXIT
Sep  2 17:24:31 srv4hai common[26148]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Sep  2 17:24:32 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'5'=1725290672-1725290667
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY (ping_SP__smartphone)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Sep  2 17:24:32 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'5'=1725290672-1725290667
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Sep  2 17:24:32 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'5'=1725290672-1725290667
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY (ping_SP__smartphone)-(0) what: 'coming' - persPresent: '(__/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_offAll) - sceneONsmall(vorraumOn)
Sep  2 17:24:32 srv4hai check_presence[26148]: SHELLY (ping_SP__smartphone)-(0)-coming: activate_scenario.shtml: vorraumOn
Sep  2 17:24:32 srv4hai activate_scenario[26296]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Sep  2 17:24:32 srv4hai activate_scenario[26296]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'0'

finished