activate_scenario.sh
Tue Dec 31 13:48:44 CET 2024
scenario: pcOFF
source: 192.168.12.10

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

scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

TB Schreibtischlampe (/srv/www/viehai/shelly/log_scenarios/2024/12/31/_0.log)

vorher: 13:48:44.842

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

nachher: 13:48:44.870
Dauer: 28 msec phName: 'shelly-0:'''


scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

urls : 1
vorher : 13:48:44.792
nachher: 13:48:44.877
Dauer : 86 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/12/31//scene_pcOFF_20241231_134844.txt'


syslog

Dec 31 13:45:00 srv4hai smartd[27489]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 53 to 52
Dec 31 13:45:00 srv4hai smartd[27489]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 101 to 100
Dec 31 13:45:00 srv4hai postfix/smtpd[16244]: warning: unknown[80.94.95.239]: SASL LOGIN authentication failed: Invalid authentication mechanism
Dec 31 13:45:01 srv4hai CRON[16261]: (root) CMD (/etc/linetest/linetest.sh)
Dec 31 13:45:01 srv4hai postfix/smtpd[16244]: disconnect from unknown[80.94.95.239] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Dec 31 13:45:10 srv4hai common[16272]: SHELLY common.sh inkludiert von ./modify_shelly.sh
Dec 31 13:45:10 srv4hai modify_shelly.sh: SHELLY QUERY_STRING='shelly=shelly-51'
Dec 31 13:45:10 srv4hai modify_shelly.sh: SHELLY shelly='shelly-51'
Dec 31 13:45:10 srv4hai common[16437]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//grab_shelly.sh
Dec 31 13:45:10 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-51' - shIP/2:'' perform:'dont_conf'
Dec 31 13:45:24 srv4hai ping_SP[25571]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1735649124 - 'ping_SP_0'
Dec 31 13:45:24 srv4hai ping_SP[25571]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Dec 31 13:45:54 srv4hai dhcpd[4995]: DHCPDISCOVER from 00:22:61:78:ac:78 via enp2s0
Dec 31 13:45:54 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.25 to 00:22:61:78:ac:78 via enp2s0
Dec 31 13:45:55 srv4hai common[16518]: SHELLY common.sh inkludiert von ./modify_shelly.sh
Dec 31 13:45:55 srv4hai modify_shelly.sh: SHELLY QUERY_STRING='shelly=shelly-51'
Dec 31 13:45:55 srv4hai modify_shelly.sh: SHELLY shelly='shelly-51'
Dec 31 13:45:55 srv4hai common[16683]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//grab_shelly.sh
Dec 31 13:45:55 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-51' - shIP/2:'' perform:'dont_conf'
Dec 31 13:46:01 srv4hai CRON[16739]: (root) CMD (/etc/linetest/linetest.sh)
Dec 31 13:46:17 srv4hai common[16760]: SHELLY common.sh inkludiert von ./modify_shelly.sh
Dec 31 13:46:17 srv4hai modify_shelly.sh: SHELLY QUERY_STRING='shelly=shelly-51'
Dec 31 13:46:17 srv4hai modify_shelly.sh: SHELLY shelly='shelly-51'
Dec 31 13:46:18 srv4hai common[16923]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//grab_shelly.sh
Dec 31 13:46:18 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-51' - shIP/2:'' perform:'dont_conf'
Dec 31 13:46:29 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=16977, secured, session=
Dec 31 13:46:29 srv4hai dovecot: imap(miglincit)<16977>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Dec 31 13:46:37 srv4hai ping_SP[25571]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1735649197 - 'ping_SP_0'
Dec 31 13:46:37 srv4hai ping_SP[25571]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Dec 31 13:46:58 srv4hai dhcpd[4995]: DHCPDISCOVER from 00:22:61:78:ac:78 via enp2s0
Dec 31 13:46:58 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.25 to 00:22:61:78:ac:78 via enp2s0
Dec 31 13:47:01 srv4hai CRON[17013]: (root) CMD (/etc/linetest/linetest.sh)
Dec 31 13:47:30 srv4hai common[17037]: SHELLY common.sh inkludiert von ./modify_shelly.sh
Dec 31 13:47:30 srv4hai modify_shelly.sh: SHELLY QUERY_STRING='shelly=shelly-51'
Dec 31 13:47:30 srv4hai modify_shelly.sh: SHELLY shelly='shelly-51'
Dec 31 13:47:30 srv4hai common[17201]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//grab_shelly.sh
Dec 31 13:47:30 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-51' - shIP/2:'' perform:'dont_conf'
Dec 31 13:47:45 srv4hai dhcpd[4995]: DHCPDISCOVER from 98:cd:ac:1e:39:5f via enp2s0
Dec 31 13:47:45 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.114 to 98:cd:ac:1e:39:5f via enp2s0
Dec 31 13:47:45 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Dec 31 13:47:45 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.114
Dec 31 13:47:45 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-14
Dec 31 13:47:45 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.114 (192.168.12.252) from 98:cd:ac:1e:39:5f via enp2s0
Dec 31 13:47:45 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.114 to 98:cd:ac:1e:39:5f via enp2s0
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f932c0c3e90 192.168.12.252#42949/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-14.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f93300fcc20 192.168.12.252#52809/key rndc-key: signer "rndc-key" approved
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f93300fcc20 192.168.12.252#52809/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-14.viehai.at' TXT
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f93300fcc20 192.168.12.252#52809/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-14.viehai.at' TXT "001691a966cf4dd6d72071525ebef5ee4e"
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f93300fcc20 192.168.12.252#52809/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-14.viehai.at' A
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f93300fcc20 192.168.12.252#52809/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-14.viehai.at' A 192.168.12.114
Dec 31 13:47:45 srv4hai dhcpd[4995]: Added new forward map from shelly-14.viehai.at to 192.168.12.114
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f9338013780 192.168.12.252#59075/key rndc-key: signer "rndc-key" approved
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f9338013780 192.168.12.252#59075/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '114.12.168.192.in-addr.arpa' PTR
Dec 31 13:47:45 srv4hai named[30406]: client @0x7f9338013780 192.168.12.252#59075/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '114.12.168.192.in-addr.arpa' PTR shelly-14.viehai.at.
Dec 31 13:47:45 srv4hai dhcpd[4995]: Added reverse map from 114.12.168.192.in-addr.arpa. to shelly-14.viehai.at
Dec 31 13:47:45 srv4hai common[17254]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Dec 31 13:47:45 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-14' - shIP/2:'' perform:'conf'
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-14' - shIP/2:'192.168.12.114'
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY: usage/name 'AUS-Schalter' already set for '192.168.12.114'
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY:'shelly-14' 'conf(0)' - allready transmitted - skipping
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY:'shelly-14' 'conf(1)' - allready transmitted - skipping
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY:'shelly-14' 'conf(2)' - allready transmitted - skipping
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY:'shelly-14' 'conf(3)' - allready transmitted - skipping
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY:'shelly-14' 'conf(4)' - allready transmitted - skipping
Dec 31 13:47:46 srv4hai conf_shelly.sh: SHELLY:'shelly-14' 'conf(5)' - allready transmitted - skipping
Dec 31 13:47:47 srv4hai ag: grab_shelly.sh SHELLY shelly-14 - (shelly-BTN): 75% - 3.98V
Dec 31 13:47:51 srv4hai ping_SP[25571]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1735649271 - 'ping_SP_0'
Dec 31 13:47:51 srv4hai ping_SP[25571]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Dec 31 13:48:01 srv4hai dhcpd[4995]: DHCPDISCOVER from 00:22:61:78:ac:78 via enp2s0
Dec 31 13:48:01 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.25 to 00:22:61:78:ac:78 via enp2s0
Dec 31 13:48:01 srv4hai CRON[17412]: (root) CMD (/etc/linetest/linetest.sh)
Dec 31 13:48:19 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17429, secured, session=
Dec 31 13:48:19 srv4hai dovecot: imap(miglincit)<17429>: Logged out in=443 out=20988 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=658 body_count=1 body_bytes=18613
Dec 31 13:48:22 srv4hai postfix/anvil[16246]: statistics: max connection rate 1/60s for (smtp:92.118.39.61) at Dec 31 13:44:40
Dec 31 13:48:22 srv4hai postfix/anvil[16246]: statistics: max connection count 1 for (smtp:92.118.39.61) at Dec 31 13:44:40
Dec 31 13:48:22 srv4hai postfix/anvil[16246]: statistics: max cache size 2 at Dec 31 13:44:58
Dec 31 13:48:26 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Dec 31 13:48:27 srv4hai fetchmail[1651]: 60490 messages (60490 seen) for tmiglinci at mail.akis.at (670148680 octets).
Dec 31 13:48:27 srv4hai fetchmail[1651]: 11314 messages (11314 seen) for srozum at mail.akis.at (1353898973 octets).
Dec 31 13:48:28 srv4hai fetchmail[1651]: 28105 messages (28105 seen) for mrozum at mail.akis.at (527719054 octets).
Dec 31 13:48:28 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Dec 31 13:48:29 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17436, secured, session=
Dec 31 13:48:29 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17438, secured, session=
Dec 31 13:48:29 srv4hai dovecot: imap(miglincit)<17438>: Logged out in=443 out=20432 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=522 body_count=1 body_bytes=18287
Dec 31 13:48:29 srv4hai dovecot: imap(miglincit)<17436>: Logged out in=718 out=39194 deleted=0 expunged=0 trashed=4 hdr_count=14 hdr_bytes=4047 body_count=0 body_bytes=0
Dec 31 13:48:35 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17445, secured, session=
Dec 31 13:48:35 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17447, secured, session=
Dec 31 13:48:35 srv4hai dovecot: imap(miglincit)<17447>: Logged out in=395 out=4107 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=535 body_count=1 body_bytes=2107
Dec 31 13:48:35 srv4hai dovecot: imap(miglincit)<17445>: Logged out in=641 out=33977 deleted=0 expunged=0 trashed=3 hdr_count=4 hdr_bytes=1298 body_count=0 body_bytes=0
Dec 31 13:48:44 srv4hai dovecot: imap(miglincit)<27674><7iM7dI4qlpnAqAwK>: Logged out in=1525869 out=15514403 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Dec 31 13:48:44 srv4hai dovecot: imap(miglincit)<27677>: Logged out in=1519561 out=16721452 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=2 body_bytes=9725
Dec 31 13:48:44 srv4hai dovecot: imap(miglincit)<27678>: Connection closed (IDLE running for 0.001 + waiting input for 114.332 secs, 2 B in + 10 B out, state=wait-input) in=1516093 out=15381438 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Dec 31 13:48:44 srv4hai dovecot: imap(miglincit)<27676>: Connection closed (IDLE running for 0.001 + waiting input for 114.356 secs, 2 B in + 10 B out, state=wait-input) in=1519517 out=15843539 deleted=0 expunged=0 trashed=0 hdr_count=2 hdr_bytes=776 body_count=0 body_bytes=0
Dec 31 13:48:44 srv4hai dovecot: imap(miglincit)<27671><4606dI4qgJnAqAwK>: Connection closed (IDLE finished 5.888 secs ago) in=11763 out=2105485 deleted=0 expunged=0 trashed=0 hdr_count=38 hdr_bytes=14221 body_count=38 body_bytes=1965008
Dec 31 13:48:44 srv4hai activate_scenario[17455]: SHELLY last scenario: 'pcON' @ '113242' from 'scene_pcON_20241231_113242.txt' - delta=-2
Dec 31 13:48:44 srv4hai activate_scenario[17455]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20241231134844 20241231113242  -f '%S'
Dec 31 13:48:44 srv4hai activate_scenario[17455]: SHELLY  new scenario: 'pcOFF' different - GO ON
Dec 31 13:48:44 srv4hai activate_scenario[17455]: SHELLY scenario: 'pcOFF(pcoff)' started
Dec 31 13:48:44 srv4hai activate_scenario[17455]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-0:''

finished