activate_scenario.sh
Tue Jul 9 23:04:01 CEST 2024
scenario: bedlight_tom
source: 192.168.12.112

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

scenario: 'Nachttischlampe Thomas UM-schalten' - 'bedlight_tom' - 'bedlight_tom'

Nachtkästchen Lampe Thomas (/srv/www/viehai/shelly/log_scenarios/2024/07/09/_0.log)

vorher: 23:04:01.859

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

nachher: 23:04:01.897
Dauer: 38 msec phName: 'shelly-12:'Schlafzimmer Licht''


scenario: 'Nachttischlampe Thomas UM-schalten' - 'bedlight_tom' - 'bedlight_tom'

urls : 1
vorher : 23:04:01.835
nachher: 23:04:01.904
Dauer : 69 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/09//scene_bedlight_tom_20240709_230401.txt'


syslog

Jul  9 23:01:01 srv4hai CRON[27621]: (root) CMD (/etc/linetest/linetest.sh)
Jul  9 23:01:03 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Jul  9 23:01:04 srv4hai fetchmail[1651]: 48329 messages (48329 seen) for tmiglinci at mail.akis.at (-306240028 octets).
Jul  9 23:01:04 srv4hai fetchmail[1651]: 10426 messages (10426 seen) for srozum at mail.akis.at (1251465709 octets).
Jul  9 23:01:05 srv4hai fetchmail[1651]: 24653 messages (24653 seen) for mrozum at mail.akis.at (22815666 octets).
Jul  9 23:01:05 srv4hai fetchmail[1651]: 1139 messages (1139 seen) for admin@bastelstube.wien at pop3.world4you.com (51570784 octets).
Jul  9 23:01:27 srv4hai ping_SP[8691]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1720558887 - 'ping_SP_0'
Jul  9 23:01:27 srv4hai ping_SP[8691]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  9 23:01:38 srv4hai ping_SP[11475]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1720558898 - 'ping_SP_1'
Jul  9 23:01:38 srv4hai ping_SP[11475]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  9 23:01:40 srv4hai mosquitto[18551]: Client shelly1-98CDAC2E1CDA has exceeded timeout, disconnecting.
Jul  9 23:01:40 srv4hai mosquitto[18551]: Socket error on client shelly1-98CDAC2E1CDA, disconnecting.
Jul  9 23:01:51 srv4hai postfix/anvil[26343]: statistics: max connection rate 1/60s for (smtp:40.85.153.23) at Jul  9 22:58:31
Jul  9 23:01:51 srv4hai postfix/anvil[26343]: statistics: max connection count 1 for (smtp:40.85.153.23) at Jul  9 22:58:31
Jul  9 23:01:51 srv4hai postfix/anvil[26343]: statistics: max cache size 1 at Jul  9 22:58:31
Jul  9 23:02:01 srv4hai CRON[27726]: (root) CMD (/etc/linetest/linetest.sh)
Jul  9 23:02:40 srv4hai ping_SP[8691]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1720558960 - 'ping_SP_0'
Jul  9 23:02:40 srv4hai ping_SP[8691]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  9 23:02:51 srv4hai ping_SP[11475]: SHELLY (1) - ping 192.168.12.62 1 sucessfully  @~1720558971 - 'ping_SP_1'
Jul  9 23:02:51 srv4hai ping_SP[11475]: SHELLY (1) - ping 192.168.12.62 pCnt:'1'
Jul  9 23:02:54 srv4hai postfix/smtpd[27813]: warning: database /etc/aliases.db is older than source file /etc/aliases
Jul  9 23:02:54 srv4hai postfix/smtpd[27813]: connect from 101.12.63.50.host.secureserver.net[50.63.12.101]
Jul  9 23:02:56 srv4hai postfix/smtpd[27813]: 0937460189: client=101.12.63.50.host.secureserver.net[50.63.12.101], sasl_method=PLAIN, sasl_username=pilsc
Jul  9 23:02:58 srv4hai postfix/cleanup[27820]: 0937460189: message-id=<0577ee45b16af3f8de743d9667a388b027d9ac@pilsc>
Jul  9 23:02:58 srv4hai postfix/qmgr[8566]: 0937460189: from=, size=1519, nrcpt=1 (queue active)
Jul  9 23:02:58 srv4hai postfix/smtpd[27813]: disconnect from 101.12.63.50.host.secureserver.net[50.63.12.101] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Jul  9 23:03:00 srv4hai postfix/smtp[27825]: 0937460189: to=, relay=hotmail-com.olc.protection.outlook.com[52.101.194.18]:25, delay=5, delays=2.9/0.01/0.44/1.6, dsn=2.6.0, status=sent (250 2.6.0 <0577ee45b16af3f8de743d9667a388b027d9ac@pilsc> [InternalId=9122510537505, Hostname=SE2P216MB1929.KORP216.PROD.OUTLOOK.COM] 8738 bytes in 0.311, 27.385 KB/sec Queued mail for delivery -> 250 2.1.5)
Jul  9 23:03:00 srv4hai postfix/qmgr[8566]: 0937460189: removed
Jul  9 23:03:01 srv4hai CRON[27827]: (root) CMD (/etc/linetest/linetest.sh)
Jul  9 23:03:01 srv4hai named[30406]: validating config-at.iocnt.net/A: no valid signature found
Jul  9 23:03:05 srv4hai dhcpd[30731]: DHCPDISCOVER from 98:cd:ac:2e:1c:da via enp2s0
Jul  9 23:03:05 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.122 to 98:cd:ac:2e:1c:da via enp2s0
Jul  9 23:03:05 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jul  9 23:03:05 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.122
Jul  9 23:03:05 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-22
Jul  9 23:03:05 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.122 (192.168.12.252) from 98:cd:ac:2e:1c:da via enp2s0
Jul  9 23:03:05 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.122 to 98:cd:ac:2e:1c:da via enp2s0
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f934c037ed0 192.168.12.252#56039/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-22.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#38947/key rndc-key: signer "rndc-key" approved
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#38947/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-22.viehai.at' TXT
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#38947/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-22.viehai.at' TXT "0051fce7ef7edfb3d29643aefa7bc5b7f2"
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#38947/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-22.viehai.at' A
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93506770d0 192.168.12.252#38947/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-22.viehai.at' A 192.168.12.122
Jul  9 23:03:05 srv4hai dhcpd[30731]: Added new forward map from shelly-22.viehai.at to 192.168.12.122
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#33737/key rndc-key: signer "rndc-key" approved
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#33737/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '122.12.168.192.in-addr.arpa' PTR
Jul  9 23:03:05 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#33737/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '122.12.168.192.in-addr.arpa' PTR shelly-22.viehai.at.
Jul  9 23:03:05 srv4hai dhcpd[30731]: Added reverse map from 122.12.168.192.in-addr.arpa. to shelly-22.viehai.at
Jul  9 23:03:05 srv4hai common[27835]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jul  9 23:03:05 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-22' - shIP/2:'' perform:'conf'
Jul  9 23:03:05 srv4hai grab_shelly.sh: SHELLY 'shelly-22':  OFFLINE, resp. not answering within timeout 1.500000s
Jul  9 23:03:05 srv4hai mosquitto[18551]: New connection from 192.168.12.122 on port 1883.
Jul  9 23:03:05 srv4hai mosquitto[18551]: New client connected from 192.168.12.122 as shelly1-98CDAC2E1CDA (c1, k60, u'shmqtt').
Jul  9 23:03:13 srv4hai common[27859]: SHELLY common.sh inkludiert von ./bt_scan.sh
Jul  9 23:03:23 srv4hai bt_scan[27859]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Jul  9 23:03:23 srv4hai bt_scan[27859]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Jul  9 23:03:23 srv4hai common[27900]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jul  9 23:03:23 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'10'=1720559003-1720558993
Jul  9 23:03:23 srv4hai check_presence[27900]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jul  9 23:03:23 srv4hai check_presence[27900]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Jul  9 23:03:23 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'10'=1720559003-1720558993
Jul  9 23:03:23 srv4hai check_presence[27900]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Jul  9 23:03:23 srv4hai check_presence[27900]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'presence'
Jul  9 23:03:23 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1720559003-1720558993
Jul  9 23:03:23 srv4hai check_presence[27900]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.Yes
Jul  9 23:03:23 srv4hai check_presence[27900]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (BT/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jul  9 23:03:24 srv4hai check_presence[27900]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_vorraumOn) - sceneOFF(offAll)
Jul  9 23:03:24 srv4hai check_presence[27900]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Jul  9 23:03:43 srv4hai postfix/smtpd[27813]: connect from unknown[178.215.236.182]
Jul  9 23:03:43 srv4hai postfix/smtpd[27813]: warning: unknown[178.215.236.182]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jul  9 23:03:43 srv4hai postfix/smtpd[27813]: disconnect from unknown[178.215.236.182] ehlo=1 auth=0/1 quit=1 commands=2/3
Jul  9 23:03:54 srv4hai ping_SP[8691]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1720559034 - 'ping_SP_0'
Jul  9 23:03:54 srv4hai ping_SP[8691]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  9 23:04:01 srv4hai CRON[28166]: (root) CMD (/etc/linetest/linetest.sh)
Jul  9 23:04:01 srv4hai activate_scenario[28178]: SHELLY scenario: 'bedlight_tom(bedlight_tom)' started
Jul  9 23:04:01 srv4hai activate_scenario[28178]: SHELLY dayState='night' <--> DayTime=checked NightTime=checked - shelly-12:'Schlafzimmer Licht'

finished