activate_scenario.sh
Fri Aug 16 18:47:25 CEST 2024
scenario: vorraumOn
phoneName: 1

'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/08/16/_0.log)

vorher: 18:47:25.888

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": "http"

nachher: 18:47:25.938
Dauer: 50 msec phName: 'phoneName:'1''


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

urls : 1
vorher : 18:47:25.868
nachher: 18:47:25.946
Dauer : 78 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/08/16//scene_vorraumOn_20240816_184725.txt'


syslog

Aug 16 18:44:01 srv4hai CRON[26870]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 18:44:10 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=26878, secured, session=<3Qktq88f7uMAAAAAAAAAAAAAAAAAAAAB>
Aug 16 18:44:10 srv4hai dovecot: imap(rozumm)<26878><3Qktq88f7uMAAAAAAAAAAAAAAAAAAAAB>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:44:21 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=26885, secured, session=
Aug 16 18:44:21 srv4hai dovecot: imap(miglincit)<26885>: Logged out in=583 out=1138 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:44:29 srv4hai ping_SP[30068]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1723826669 - 'ping_SP_0'
Aug 16 18:44:29 srv4hai ping_SP[30068]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug 16 18:45:00 srv4hai smartd[27489]: Device: /dev/sdd [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 99 to 98
Aug 16 18:45:01 srv4hai CRON[26912]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 18:45:11 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=26921, secured, session=
Aug 16 18:45:11 srv4hai dovecot: imap(rozumm)<26921>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:45:13 srv4hai dhcpd[30731]: DHCPDISCOVER from f4:cf:a2:e3:b2:94 via enp2s0
Aug 16 18:45:13 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.101 to f4:cf:a2:e3:b2:94 via enp2s0
Aug 16 18:45:13 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Aug 16 18:45:13 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.101
Aug 16 18:45:13 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-01
Aug 16 18:45:13 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.101 (192.168.12.252) from f4:cf:a2:e3:b2:94 via enp2s0
Aug 16 18:45:13 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.101 to f4:cf:a2:e3:b2:94 via enp2s0
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93100dcb70 192.168.12.252#38349/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-01.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#41997/key rndc-key: signer "rndc-key" approved
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#41997/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-01.viehai.at' TXT
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#41997/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-01.viehai.at' TXT "00c768089445c9f8f8e0a9ab6d602edfb6"
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#41997/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-01.viehai.at' A
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93100d29e0 192.168.12.252#41997/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-01.viehai.at' A 192.168.12.101
Aug 16 18:45:13 srv4hai dhcpd[30731]: Added new forward map from shelly-01.viehai.at to 192.168.12.101
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#37865/key rndc-key: signer "rndc-key" approved
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#37865/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '101.12.168.192.in-addr.arpa' PTR
Aug 16 18:45:13 srv4hai named[30406]: client @0x7f93480daa40 192.168.12.252#37865/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.
Aug 16 18:45:13 srv4hai dhcpd[30731]: Added reverse map from 101.12.168.192.in-addr.arpa. to shelly-01.viehai.at
Aug 16 18:45:13 srv4hai common[26923]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Aug 16 18:45:13 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-01' - shIP/2:'' perform:'conf'
Aug 16 18:45:14 srv4hai mosquitto[18551]: New connection from 192.168.12.101 on port 1883.
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-01' - shIP/2:'192.168.12.101'
Aug 16 18:45:14 srv4hai mosquitto[18551]: New client connected from 192.168.12.101 as shelly1pm-F4CFA2E3B294 (c1, k60, u'shmqtt').
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY: usage/name 'Wandlicht beim Esstisch' already set for '192.168.12.101'
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(0)' - allready transmitted - skipping
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(1)' - allready transmitted - skipping
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(2)' - allready transmitted - skipping
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(3)' - allready transmitted - skipping
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(4)' - allready transmitted - skipping
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' 'conf(5)' - allready transmitted - skipping
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' out:0 ON : MISSING
Aug 16 18:45:14 srv4hai conf_shelly.sh: SHELLY:'shelly-01' out:0 OFF: MISSING
Aug 16 18:45:42 srv4hai ping_SP[30068]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1723826742 - 'ping_SP_0'
Aug 16 18:45:42 srv4hai ping_SP[30068]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug 16 18:45:56 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27093, secured, session=
Aug 16 18:45:56 srv4hai dovecot: imap(miglincit)<27093>: Logged out in=583 out=1203 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:46:01 srv4hai CRON[27097]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 18:46:11 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27103, secured, session=
Aug 16 18:46:11 srv4hai dovecot: imap(rozumm)<27103>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:46:55 srv4hai ping_SP[30068]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1723826815 - 'ping_SP_0'
Aug 16 18:46:55 srv4hai ping_SP[30068]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug 16 18:47:01 srv4hai CRON[27146]: (root) CMD (/etc/linetest/linetest.sh)
Aug 16 18:47:11 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27152, secured, session=
Aug 16 18:47:11 srv4hai dovecot: imap(rozumm)<27152>: Logged out in=92 out=1060 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:47:15 srv4hai common[27155]: SHELLY common.sh inkludiert von ./bt_scan.sh
Aug 16 18:47:18 srv4hai dhcpd[30731]: DHCPDISCOVER from f0:39:65:25:8d:c7 via enp2s0
Aug 16 18:47:18 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.62 to f0:39:65:25:8d:c7 via enp2s0
Aug 16 18:47:18 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Aug 16 18:47:18 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.62
Aug 16 18:47:18 srv4hai dhcpd[30731]: execute_statement argv[2] = GreteS20
Aug 16 18:47:18 srv4hai common[27170]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Aug 16 18:47:21 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27183, secured, session=
Aug 16 18:47:21 srv4hai dovecot: imap(miglincit)<27183>: Logged out in=137 out=1053 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug 16 18:47:25 srv4hai bt_scan[27155]: SHELLY - who: 'Grete' / phoneName: 'S20_Grete' / '1' / shellyIP: '192.168.12.62' - found: 'Yes'
Aug 16 18:47:25 srv4hai bt_scan[27155]: SHELLY - ping_SP.sh started for BTmac: '1' - IPv4: '192.168.12.62'
Aug 16 18:47:25 srv4hai common[27202]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Aug 16 18:47:25 srv4hai ping_SP[27202]: SHELLY ping_SP.sh started from bt_scan, user:'www-data'
Aug 16 18:47:25 srv4hai common[27223]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Aug 16 18:47:25 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'10'=1723826845-1723826835
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY (ping_SP__bt_scan)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Aug 16 18:47:25 srv4hai common.sh: SHELLY: BTstatus[1]:'On' dweetAge:'10'=1723826845-1723826835
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.TRY} and On//srv/www/viehai/shelly//meter/BTscan_BTid_1.Yes
Aug 16 18:47:25 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1723826845-1723826835
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY (ping_SP__bt_scan)-(1) what: 'coming' - persPresent: '(__/LIVE) (BT/__) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_homeOffice) - sceneONsmall(vorraumOn)
Aug 16 18:47:25 srv4hai check_presence[27223]: SHELLY (ping_SP__bt_scan)-(1)-coming: activate_scenario.shtml: vorraumOn
Aug 16 18:47:25 srv4hai activate_scenario[27369]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Aug 16 18:47:25 srv4hai activate_scenario[27369]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'1'

finished