activate_scenario.sh
Sat Jan 18 11:53:47 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: 11:53:47.869

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: 11:53:47.918
Dauer: 49 msec phName: 'shelly-40:'TB Licht''


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

vorher: 11:53:47.888

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: 11:53:47.927
Dauer: 40 msec phName: 'shelly-40:'TB Licht''


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

urls : 2
vorher : 11:53:47.843
nachher: 11:53:47.934
Dauer : 91 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/01/18//scene_buero_UM_20250118_115347.txt'


syslog

Jan 18 11:50:01 srv4hai CRON[23346]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 11:50:01 srv4hai CRON[23347]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Jan 18 11:50:01 srv4hai common[23349]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Jan 18 11:50:01 srv4hai meter.sh: SHELLY meter.sh started
Jan 18 11:50:01 srv4hai meter.sh: SHELLY 'shelly-29/KÜ Schalter Herdzeile' - type: 'shelly-i3' ignoring
Jan 18 11:50:01 srv4hai meter.sh: SHELLY 'shelly-28/KÜ Schalter Nasszeile' - type: 'shelly-i3' ignoring
Jan 18 11:50:08 srv4hai meter.sh: SHELLY 'shelly-47/GB Schreibtischlampe links':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan 18 11:50:10 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Jan 18 11:50:10 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Jan 18 11:50:10 srv4hai meter.sh: SHELLY 'shelly-37/TB Klima' - type: 'shelly-ht' ignoring
Jan 18 11:50:10 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Jan 18 11:50:10 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Jan 18 11:50:13 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan 18 11:50:15 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan 18 11:50:15 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-01a/WZ Licht Esstisch - 20241208 kein WLAN' - status: 'DFC' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-43/43-tbd' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Jan 18 11:50:16 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Jan 18 11:50:19 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jan 18 11:50:20 srv4hai fetchmail[1651]: 61702 messages (61701 seen) for tmiglinci at mail.akis.at (760673058 octets).
Jan 18 11:50:20 srv4hai postfix/smtpd[24315]: connect from localhost[127.0.0.1]
Jan 18 11:50:20 srv4hai postfix/smtpd[24315]: 678BA6345A: client=localhost[127.0.0.1]
Jan 18 11:50:20 srv4hai postfix/cleanup[24318]: 678BA6345A: message-id=
Jan 18 11:50:20 srv4hai fetchmail[1651]: reading message tmiglinci@mail.akis.at:61702 of 61702 (70188 octets) not flushed
Jan 18 11:50:20 srv4hai postfix/qmgr[8566]: 678BA6345A: from=, size=70493, nrcpt=1 (queue active)
Jan 18 11:50:20 srv4hai postfix/smtpd[24315]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jan 18 11:50:20 srv4hai postfix/local[24319]: 678BA6345A: to=, relay=local, delay=0.11, delays=0.08/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Jan 18 11:50:20 srv4hai postfix/qmgr[8566]: 678BA6345A: removed
Jan 18 11:50:20 srv4hai meter.sh: SHELLY 'shelly-50/50-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan 18 11:50:20 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Jan 18 11:50:20 srv4hai common[24352]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_shelly.sh
Jan 18 11:50:20 srv4hai check_shelly.sh: SHELLY last scenery executed: 'herdzeile_UM'
Jan 18 11:50:20 srv4hai check_shelly.sh: SHELLY found '6' active shelly outputs
Jan 18 11:50:20 srv4hai meter.sh: SHELLY meter.sh ended
Jan 18 11:50:20 srv4hai fetchmail[1651]: 11400 messages (11400 seen) for srozum at mail.akis.at (1359262213 octets).
Jan 18 11:50:21 srv4hai fetchmail[1651]: 28394 messages (28394 seen) for mrozum at mail.akis.at (575237502 octets).
Jan 18 11:50:21 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Jan 18 11:50:38 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=24389, secured, session=
Jan 18 11:50:38 srv4hai dovecot: imap(miglincit)<24389>: Logged out in=1423 out=149696 deleted=0 expunged=0 trashed=0 hdr_count=237 hdr_bytes=79476 body_count=0 body_bytes=0
Jan 18 11:50:47 srv4hai ping_SP[6093]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1737197447 - 'ping_SP_0'
Jan 18 11:50:47 srv4hai ping_SP[6093]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 18 11:50:48 srv4hai ping_SP[8986]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1737197448 - 'ping_SP_1'
Jan 18 11:50:48 srv4hai ping_SP[8986]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jan 18 11:50:54 srv4hai dhcpd[4995]: DHCPDISCOVER from 44:17:93:a5:8a:e4 via enp2s0
Jan 18 11:50:54 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.147 to 44:17:93:a5:8a:e4 via enp2s0
Jan 18 11:50:54 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jan 18 11:50:54 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.147
Jan 18 11:50:54 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-47
Jan 18 11:50:54 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.147 (192.168.12.252) from 44:17:93:a5:8a:e4 via enp2s0
Jan 18 11:50:54 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.147 to 44:17:93:a5:8a:e4 via enp2s0
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f935010f2a0 192.168.12.252#42105/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-47.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#53305/key rndc-key: signer "rndc-key" approved
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#53305/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-47.viehai.at' TXT
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#53305/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-47.viehai.at' TXT "31f97534415d36e3a13ec57b0310c0867f"
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#53305/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-47.viehai.at' A
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f93480deab0 192.168.12.252#53305/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-47.viehai.at' A 192.168.12.147
Jan 18 11:50:54 srv4hai dhcpd[4995]: Added new forward map from shelly-47.viehai.at to 192.168.12.147
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f932c04c990 192.168.12.252#33847/key rndc-key: signer "rndc-key" approved
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f932c04c990 192.168.12.252#33847/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '147.12.168.192.in-addr.arpa' PTR
Jan 18 11:50:54 srv4hai named[30406]: client @0x7f932c04c990 192.168.12.252#33847/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '147.12.168.192.in-addr.arpa' PTR shelly-47.viehai.at.
Jan 18 11:50:54 srv4hai dhcpd[4995]: Added reverse map from 147.12.168.192.in-addr.arpa. to shelly-47.viehai.at
Jan 18 11:50:54 srv4hai common[24428]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jan 18 11:50:54 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-47' - shIP/2:'' perform:'conf'
Jan 18 11:50:55 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-47' - shIP/2:'192.168.12.147'
Jan 18 11:50:55 srv4hai conf_shelly.sh: SHELLY: usage/name 'GB Schreibtischlampe links' already set for '192.168.12.147'
Jan 18 11:50:55 srv4hai mosquitto[29419]: New connection from 192.168.12.147 on port 1883.
Jan 18 11:50:55 srv4hai mosquitto[29419]: New client connected from 192.168.12.147 as shellyplus1-441793a58ae4 (c1, k60, u'shmqtt').
Jan 18 11:50:55 srv4hai conf_shelly.sh: SHELLY:'shelly-47' 'conf(0)' - allready transmitted - skipping
Jan 18 11:50:55 srv4hai conf_shelly.sh: SHELLY:'shelly-47' 'conf(1)' - allready transmitted - skipping
Jan 18 11:50:55 srv4hai conf_shelly.sh: SHELLY:'shelly-47' 'conf(2)' - allready transmitted - skipping
Jan 18 11:51:01 srv4hai CRON[24515]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 11:51:20 srv4hai postfix/anvil[23199]: statistics: max connection rate 1/60s for (smtp:195.178.110.217) at Jan 18 11:47:46
Jan 18 11:51:20 srv4hai postfix/anvil[23199]: statistics: max connection count 1 for (smtp:195.178.110.217) at Jan 18 11:47:46
Jan 18 11:51:20 srv4hai postfix/anvil[23199]: statistics: max cache size 2 at Jan 18 11:47:54
Jan 18 11:51:40 srv4hai common[24529]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jan 18 11:51:50 srv4hai bt_scan[24529]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'No'
Jan 18 11:51:50 srv4hai bt_scan[24529]: SHELLY - lost BT-connection to BTmac: '1' found: 'No' - check presence
Jan 18 11:51:50 srv4hai common[24564]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jan 18 11:51:50 srv4hai common.sh: SHELLY: BTstatus[0]:'On' dweetAge:'3'=1737197510-1737197507
Jan 18 11:51:50 srv4hai check_presence[24564]: 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 11:51:50 srv4hai check_presence[24564]: SHELLY (bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Jan 18 11:51:50 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'3'=1737197510-1737197507
Jan 18 11:51:50 srv4hai check_presence[24564]: 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 11:51:50 srv4hai check_presence[24564]: SHELLY (bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Jan 18 11:51:50 srv4hai check_presence[24564]: SHELLY (bt_scan)-(1) what: 'presence' - persPresent: '(BT/LIVE) (__/LIVE)' - anyPresent: 'true' - otherPresent:'true'
Jan 18 11:51:51 srv4hai check_presence[24564]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_herdzeile_UM) - sceneOFF(offAll)
Jan 18 11:51:51 srv4hai check_presence[24564]: SHELLY (bt_scan)-(1)-presence: NOT activate_scenario.shtml: offAll
Jan 18 11:51:53 srv4hai postfix/smtpd[24315]: connect from unknown[195.178.110.213]
Jan 18 11:51:58 srv4hai postfix/smtpd[24315]: warning: unknown[195.178.110.213]: SASL PLAIN authentication failed: 
Jan 18 11:51:58 srv4hai postfix/smtpd[24315]: disconnect from unknown[195.178.110.213] ehlo=1 auth=0/1 quit=1 commands=2/3
Jan 18 11:52:00 srv4hai ping_SP[6093]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1737197520 - 'ping_SP_0'
Jan 18 11:52:00 srv4hai ping_SP[6093]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 18 11:52:01 srv4hai CRON[24702]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 11:52:11 srv4hai ping_SP[8986]: SHELLY (1)- ping 192.168.12.62 1 not answered (1) @~1737197531 - 'ping_SP_1'
Jan 18 11:52:34 srv4hai postfix/smtpd[24315]: connect from unknown[195.178.110.214]
Jan 18 11:52:38 srv4hai ping_SP[8986]: SHELLY (1)- ping 192.168.12.62 2 not answered (1) @~1737197558 - 'ping_SP_1'
Jan 18 11:52:38 srv4hai postfix/smtpd[24315]: warning: unknown[195.178.110.214]: SASL PLAIN authentication failed: 
Jan 18 11:52:38 srv4hai postfix/smtpd[24315]: disconnect from unknown[195.178.110.214] ehlo=1 auth=0/1 quit=1 commands=2/3
Jan 18 11:53:01 srv4hai CRON[24757]: (root) CMD (/etc/linetest/linetest.sh)
Jan 18 11:53:04 srv4hai ping_SP[8986]: SHELLY (1)- ping 192.168.12.62 3 not answered (1) @~1737197584 - 'ping_SP_1'
Jan 18 11:53:13 srv4hai ping_SP[6093]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1737197593 - 'ping_SP_0'
Jan 18 11:53:13 srv4hai ping_SP[6093]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan 18 11:53:30 srv4hai ping_SP[8986]: SHELLY (1)- ping 192.168.12.62 4 not answered (1) @~1737197610 - 'ping_SP_1'
Jan 18 11:53:38 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=24817, secured, session=
Jan 18 11:53:38 srv4hai dovecot: imap(miglincit)<24817>: Logged out in=1248 out=1233 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan 18 11:53:47 srv4hai postfix/smtpd[24315]: connect from unknown[193.32.162.66]
Jan 18 11:53:47 srv4hai activate_scenario[24825]: SHELLY last scenario: 'herdzeile_UM' @ '103653' from 'scene_herdzeile_UM_20250118_103653.txt' - delta=6
Jan 18 11:53:47 srv4hai activate_scenario[24825]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250118115347 20250118103653  -f '%S'
Jan 18 11:53:47 srv4hai activate_scenario[24825]: SHELLY  new scenario: 'buero_UM' different - GO ON
Jan 18 11:53:47 srv4hai activate_scenario[24825]: SHELLY scenario: 'buero_UM(buero_um)' started
Jan 18 11:53:47 srv4hai activate_scenario[24825]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'TB Licht'

finished