activate_scenario.sh
Sat Jan 18 15:48:12 CET 2025
scenario: buero_UM
source: 192.168.12.140

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

scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

TB Regallicht (/srv/www/viehai/shelly/log_scenarios/2025/01/18/_0.log)

vorher: 15:48:12.699

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

nachher: 15:48:12.747
Dauer: 47 msec phName: 'shelly-40:'TB Licht''


TB Licht (/srv/www/viehai/shelly/log_scenarios/2025/01/18/_1.log)

vorher: 15:48:12.717

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

nachher: 15:48:12.766
Dauer: 48 msec phName: 'shelly-40:'TB Licht''


scenario: 'Büro UM-schalten' - 'buero_UM' - 'buero_um'

urls : 2
vorher : 15:48:12.658
nachher: 15:48:12.772
Dauer : 116 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/01/18//scene_buero_UM_20250118_154812.txt'


syslog

Jan 18 15:45:00 srv4hai smartd[27489]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 54 to 53
Jan 18 15:45:01 srv4hai CRON[7701]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 15:45:12 srv4hai common[7708]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jan 18 15:45:22 srv4hai bt_scan[7708]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'No'
Jan 18 15:45:22 srv4hai bt_scan[7708]: SHELLY - lost BT-connection to BTmac: '1' found: 'No' - check presence
Jan 18 15:45:22 srv4hai common[7744]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jan 18 15:45:22 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'3'=1737211522-1737211519
Jan 18 15:45:22 srv4hai check_presence[7744]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_0.Yes
Jan 18 15:45:22 srv4hai check_presence[7744]: SHELLY (bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Jan 18 15:45:22 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'3'=1737211522-1737211519
Jan 18 15:45:22 srv4hai check_presence[7744]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jan 18 15:45:22 srv4hai check_presence[7744]: SHELLY (bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Jan 18 15:45:22 srv4hai check_presence[7744]: SHELLY (bt_scan)-(1) what: 'presence' - persPresent: '(BT/LIVE) (__/LIVE)' - anyPresent: 'true' - otherPresent:'true'
Jan 18 15:45:23 srv4hai check_presence[7744]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_vorraumOn) - sceneOFF(offAll)
Jan 18 15:45:23 srv4hai check_presence[7744]: SHELLY (bt_scan)-(1)-presence: NOT activate_scenario.shtml: offAll
Jan 18 15:45:24 srv4hai dhcpd[4995]: uid lease 192.168.12.56 for client cc:8d:a2:60:52:b8 is duplicate on 192.168.12.0/24
Jan 18 15:45:24 srv4hai dhcpd[4995]: DHCPDISCOVER from cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:45:24 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.101 to cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:45:24 srv4hai dhcpd[4995]: uid lease 192.168.12.56 for client cc:8d:a2:60:52:b8 is duplicate on 192.168.12.0/24
Jan 18 15:45:24 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jan 18 15:45:24 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.101
Jan 18 15:45:24 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-01
Jan 18 15:45:24 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.101 (192.168.12.252) from cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:45:24 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.101 to cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#33823/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-01.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f93100971e0 192.168.12.252#51445/key rndc-key: signer "rndc-key" approved
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f93100971e0 192.168.12.252#51445/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-01.viehai.at' TXT
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f93100971e0 192.168.12.252#51445/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-01.viehai.at' TXT "31166740fe21d7ece7561d62986d2b8644"
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f93100971e0 192.168.12.252#51445/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-01.viehai.at' A
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f93100971e0 192.168.12.252#51445/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-01.viehai.at' A 192.168.12.101
Jan 18 15:45:24 srv4hai dhcpd[4995]: Added new forward map from shelly-01.viehai.at to 192.168.12.101
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#48611/key rndc-key: signer "rndc-key" approved
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#48611/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '101.12.168.192.in-addr.arpa' PTR
Jan 18 15:45:24 srv4hai named[30406]: client @0x7f935011da30 192.168.12.252#48611/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '101.12.168.192.in-addr.arpa' PTR shelly-01.viehai.at.
Jan 18 15:45:24 srv4hai dhcpd[4995]: Added reverse map from 101.12.168.192.in-addr.arpa. to shelly-01.viehai.at
Jan 18 15:45:24 srv4hai common[7860]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jan 18 15:45:24 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-01' - shIP/2:'' perform:'conf'
Jan 18 15:45:25 srv4hai dhcpd[4995]: DHCPRELEASE of 192.168.12.101 from cc:8d:a2:60:52:b8 via enp2s0 (not found)
Jan 18 15:45:25 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-01' - shIP/2:'192.168.12.101'
Jan 18 15:45:25 srv4hai conf_shelly.sh: SHELLY: usage/name 'WZ Licht Esstisch' already set for '192.168.12.101'
Jan 18 15:45:25 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(0)' - allready transmitted - skipping
Jan 18 15:45:25 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(1)' - allready transmitted - skipping
Jan 18 15:45:25 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(2)' - allready transmitted - skipping
Jan 18 15:45:34 srv4hai ping_SP[396]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1737211534 - 'ping_SP_0'
Jan 18 15:45:34 srv4hai ping_SP[396]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 18 15:45:59 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=7972, secured, session=
Jan 18 15:45:59 srv4hai dovecot: imap(rozumm)<7972>: Logged out in=92 out=1061 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 18 15:46:01 srv4hai CRON[7977]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 15:46:10 srv4hai ping_SP[26718]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1737211570 - 'ping_SP_1'
Jan 18 15:46:10 srv4hai ping_SP[26718]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 18 15:46:47 srv4hai ping_SP[396]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1737211607 - 'ping_SP_0'
Jan 18 15:46:47 srv4hai ping_SP[396]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 18 15:46:49 srv4hai postfix/smtpd[8029]: connect from unknown[195.178.110.218]
Jan 18 15:46:54 srv4hai postfix/smtpd[8029]: warning: unknown[195.178.110.218]: SASL PLAIN authentication failed: 
Jan 18 15:46:54 srv4hai postfix/smtpd[8029]: disconnect from unknown[195.178.110.218] ehlo=1 auth=0/1 quit=1 commands=2/3
Jan 18 15:46:59 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=8038, secured, session=
Jan 18 15:46:59 srv4hai dovecot: imap(rozumm)<8038>: Logged out in=92 out=1061 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 18 15:47:00 srv4hai common[8040]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jan 18 15:47:01 srv4hai CRON[8055]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 15:47:11 srv4hai bt_scan[8040]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'Yes'
Jan 18 15:47:11 srv4hai bt_scan[8040]: SHELLY - ping_SP.sh already running for BTmac: '1' - IPv4: '192.168.12.62'
Jan 18 15:47:24 srv4hai ping_SP[26718]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1737211644 - 'ping_SP_1'
Jan 18 15:47:24 srv4hai ping_SP[26718]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 18 15:47:30 srv4hai dhcpd[4995]: uid lease 192.168.12.56 for client cc:8d:a2:60:52:b8 is duplicate on 192.168.12.0/24
Jan 18 15:47:30 srv4hai dhcpd[4995]: DHCPDISCOVER from cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:47:30 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.101 to cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:47:30 srv4hai dhcpd[4995]: uid lease 192.168.12.56 for client cc:8d:a2:60:52:b8 is duplicate on 192.168.12.0/24
Jan 18 15:47:30 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jan 18 15:47:30 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.101
Jan 18 15:47:30 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-01
Jan 18 15:47:30 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.101 (192.168.12.252) from cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:47:30 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.101 to cc:8d:a2:60:52:b8 via enp2s0
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f93300b2620 192.168.12.252#43989/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-01.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#35241/key rndc-key: signer "rndc-key" approved
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#35241/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-01.viehai.at' TXT
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#35241/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-01.viehai.at' TXT "31166740fe21d7ece7561d62986d2b8644"
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#35241/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-01.viehai.at' A
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f931c03b370 192.168.12.252#35241/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-01.viehai.at' A 192.168.12.101
Jan 18 15:47:30 srv4hai dhcpd[4995]: Added new forward map from shelly-01.viehai.at to 192.168.12.101
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f934c09fdf0 192.168.12.252#45079/key rndc-key: signer "rndc-key" approved
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f934c09fdf0 192.168.12.252#45079/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '101.12.168.192.in-addr.arpa' PTR
Jan 18 15:47:30 srv4hai named[30406]: client @0x7f934c09fdf0 192.168.12.252#45079/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '101.12.168.192.in-addr.arpa' PTR shelly-01.viehai.at.
Jan 18 15:47:30 srv4hai dhcpd[4995]: Added reverse map from 101.12.168.192.in-addr.arpa. to shelly-01.viehai.at
Jan 18 15:47:30 srv4hai common[8105]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jan 18 15:47:30 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-01' - shIP/2:'' perform:'conf'
Jan 18 15:47:31 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-01' - shIP/2:'192.168.12.101'
Jan 18 15:47:31 srv4hai conf_shelly.sh: SHELLY: usage/name 'WZ Licht Esstisch' already set for '192.168.12.101'
Jan 18 15:47:31 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(0)' - allready transmitted - skipping
Jan 18 15:47:31 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(1)' - allready transmitted - skipping
Jan 18 15:47:31 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(2)' - allready transmitted - skipping
Jan 18 15:47:38 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=8192, secured, session=
Jan 18 15:47:38 srv4hai dovecot: imap(miglincit)<8192>: Logged out in=137 out=1088 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 18 15:47:59 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=8201, secured, session=
Jan 18 15:47:59 srv4hai dovecot: imap(rozumm)<8201>: Logged out in=92 out=1061 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 18 15:48:01 srv4hai ping_SP[396]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1737211681 - 'ping_SP_0'
Jan 18 15:48:01 srv4hai ping_SP[396]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 18 15:48:01 srv4hai CRON[8217]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 15:48:05 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jan 18 15:48:06 srv4hai fetchmail[1651]: 61711 messages (61711 seen) for tmiglinci at mail.akis.at (761304900 octets).
Jan 18 15:48:06 srv4hai fetchmail[1651]: 11402 messages (11402 seen) for srozum at mail.akis.at (1359360606 octets).
Jan 18 15:48:07 srv4hai fetchmail[1651]: 28396 messages (28396 seen) for mrozum at mail.akis.at (575383563 octets).
Jan 18 15:48:08 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Jan 18 15:48:08 srv4hai common[8223]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jan 18 15:48:12 srv4hai activate_scenario[8238]: SHELLY last scenario: 'vorraumOn' @ '150935' from 'scene_vorraumOn_20250118_150935.txt' - delta=23
Jan 18 15:48:12 srv4hai activate_scenario[8238]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250118154812 20250118150935  -f '%S'
Jan 18 15:48:12 srv4hai activate_scenario[8238]: SHELLY  new scenario: 'buero_UM' different - GO ON
Jan 18 15:48:12 srv4hai activate_scenario[8238]: SHELLY scenario: 'buero_UM(buero_um)' started
Jan 18 15:48:12 srv4hai activate_scenario[8238]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'

finished