activate_scenario.sh
Tue Aug 6 18:55:10 CEST 2024
scenario: homeOffice
source: 192.168.12.140

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

scenario: 'Home-Office' - 'homeOffice' - 'homeoffice'

Wandlicht beim Esstisch (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_0.log)

vorher: 18:55:10.587

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

nachher: 18:55:10.626
Dauer: 39 msec phName: 'shelly-40:'Thomas Büro Licht''


Balkon-Licht (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_1.log)

vorher: 18:55:10.610

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

nachher: 18:55:10.684
Dauer: 73 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Vorzimmer (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_2.log)

vorher: 18:55:10.626

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

nachher: 18:55:10.745
Dauer: 119 msec phName: 'shelly-40:'Thomas Büro Licht''


Stehlampe Anne hell (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_3.log)

vorher: 18:55:10.644

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

nachher: 18:55:10.682
Dauer: 38 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe klein (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_4.log)

vorher: 18:55:10.659

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

nachher: 18:55:10.746
Dauer: 87 msec phName: 'shelly-40:'Thomas Büro Licht''


Nachtkästchen Lampe Thomas (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_5.log)

vorher: 18:55:10.677

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

nachher: 18:55:10.720
Dauer: 44 msec phName: 'shelly-40:'Thomas Büro Licht''


Thomas Büro Regallicht (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_6.log)

vorher: 18:55:10.693

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

nachher: 18:55:10.776
Dauer: 83 msec phName: 'shelly-40:'Thomas Büro Licht''


Sophie Licht (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_7.log)

vorher: 18:55:10.707

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

nachher: 18:55:10.775
Dauer: 69 msec phName: 'shelly-40:'Thomas Büro Licht''


WZ Bücherregal (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_8.log)

vorher: 18:55:10.722

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

nachher: 18:55:10.757
Dauer: 35 msec phName: 'shelly-40:'Thomas Büro Licht''


Thomas Büro Licht (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_9.log)

vorher: 18:55:10.737

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

nachher: 18:55:10.906
Dauer: 169 msec phName: 'shelly-40:'Thomas Büro Licht''


Schlafzimmer Licht (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_10.log)

vorher: 18:55:10.750

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

nachher: 18:55:10.894
Dauer: 143 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_11.log)

vorher: 18:55:10.766

http://192.168.12.116/white/0?turn=on&brightness=20
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 20,
  "transition": 0,
  "power": 12.72,
  "overpower": false

nachher: 18:55:10.811
Dauer: 45 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Naßzeile (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_12.log)

vorher: 18:55:10.783

http://192.168.12.116/white/1?turn=on&brightness=20
  "ison": true,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 20,
  "transition": 0,
  "power": 12.72,
  "overpower": false

nachher: 18:55:10.827
Dauer: 44 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_13.log)

vorher: 18:55:10.796

http://192.168.12.117/white/0?turn=off&brightness=50
  "ison": false,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 50,
  "transition": 0,
  "power": 0,
  "overpower": false

nachher: 18:55:10.823
Dauer: 28 msec phName: 'shelly-40:'Thomas Büro Licht''


Küche Licht Herdzeile (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_14.log)

vorher: 18:55:10.809

http://192.168.12.117/white/1?turn=off&brightness=50
  "ison": false,
  "source": "http",
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "mode": "white",
  "brightness": 50,
  "transition": 0,
  "power": 0,
  "overpower": false

nachher: 18:55:10.892
Dauer: 84 msec phName: 'shelly-40:'Thomas Büro Licht''


Fernsehlampe groß (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_15.log)

vorher: 18:55:10.826

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

nachher: 18:55:10.896
Dauer: 69 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Sekretär (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_16.log)

vorher: 18:55:10.843

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

nachher: 18:55:11.004
Dauer: 161 msec phName: 'shelly-40:'Thomas Büro Licht''


Licht Empore (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_17.log)

vorher: 18:55:10.858

http://192.168.12.124/relay/0?turn=on
  "ison": true,
  "has_timer": false,
  "timer_started": 0,
  "timer_duration": 0,
  "timer_remaining": 0,
  "source": "input"

nachher: 18:55:10.971
Dauer: 113 msec phName: 'shelly-40:'Thomas Büro Licht''


Küchenlicht (/srv/www/viehai/shelly/log_scenarios/2024/08/06/_18.log)

vorher: 18:55:10.872

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

nachher: 18:55:10.910
Dauer: 37 msec phName: 'shelly-40:'Thomas Büro Licht''


scenario: 'Home-Office' - 'homeOffice' - 'homeoffice'

urls : 19
vorher : 18:55:10.545
nachher: 18:55:11.013
Dauer : 469 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/08/06//scene_homeOffice_20240806_185510.txt'


syslog

Aug  6 18:52:01 srv4hai CRON[17455]: (root) CMD (/etc/linetest/linetest.sh)
Aug  6 18:52:03 srv4hai ping_SP[5006]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1722963123 - 'ping_SP_0'
Aug  6 18:52:03 srv4hai ping_SP[5006]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug  6 18:52:06 srv4hai common[17475]: SHELLY common.sh inkludiert von ./bt_scan.sh
Aug  6 18:52:16 srv4hai bt_scan[17475]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Aug  6 18:52:16 srv4hai bt_scan[17475]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Aug  6 18:52:53 srv4hai dhcpd[30731]: DHCPDISCOVER from e8:db:84:a8:91:c9 via enp2s0
Aug  6 18:52:53 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.117 to e8:db:84:a8:91:c9 via enp2s0
Aug  6 18:52:53 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Aug  6 18:52:53 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.117
Aug  6 18:52:53 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-17
Aug  6 18:52:53 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.117 (192.168.12.252) from e8:db:84:a8:91:c9 via enp2s0
Aug  6 18:52:53 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.117 to e8:db:84:a8:91:c9 via enp2s0
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f931002f1e0 192.168.12.252#33411/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-17.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f932c03e370 192.168.12.252#46347/key rndc-key: signer "rndc-key" approved
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f932c03e370 192.168.12.252#46347/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-17.viehai.at' TXT
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f932c03e370 192.168.12.252#46347/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-17.viehai.at' TXT "00b598fea4f634c10c92531f66051bcfce"
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f932c03e370 192.168.12.252#46347/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-17.viehai.at' A
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f932c03e370 192.168.12.252#46347/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-17.viehai.at' A 192.168.12.117
Aug  6 18:52:53 srv4hai dhcpd[30731]: Added new forward map from shelly-17.viehai.at to 192.168.12.117
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f934c0b2c60 192.168.12.252#36441/key rndc-key: signer "rndc-key" approved
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f934c0b2c60 192.168.12.252#36441/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '117.12.168.192.in-addr.arpa' PTR
Aug  6 18:52:53 srv4hai named[30406]: client @0x7f934c0b2c60 192.168.12.252#36441/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '117.12.168.192.in-addr.arpa' PTR shelly-17.viehai.at.
Aug  6 18:52:53 srv4hai dhcpd[30731]: Added reverse map from 117.12.168.192.in-addr.arpa. to shelly-17.viehai.at
Aug  6 18:52:53 srv4hai common[17513]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Aug  6 18:52:53 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-17' - shIP/2:'' perform:'conf'
Aug  6 18:52:54 srv4hai mosquitto[18551]: New connection from 192.168.12.117 on port 1883.
Aug  6 18:52:54 srv4hai mosquitto[18551]: Client shellyrgbw2-A891C9 already connected, closing old connection.
Aug  6 18:52:54 srv4hai mosquitto[18551]: Socket error on client shellyrgbw2-A891C9, disconnecting.
Aug  6 18:52:54 srv4hai mosquitto[18551]: New client connected from 192.168.12.117 as shellyrgbw2-A891C9 (c1, k60, u'shmqtt').
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-17' - shIP/2:'192.168.12.117'
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY: usage/name 'Küche Licht Herdzeile' already set for '192.168.12.117'
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(0)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(1)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(2)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(3)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(4)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(5)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(6)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' 'conf(7)' - allready transmitted - skipping
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:0 ON : MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:1 ON : MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:2 ON : MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:3 ON : MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:0 OFF: MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:1 OFF: MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:2 OFF: MISSING
Aug  6 18:52:54 srv4hai conf_shelly.sh: SHELLY:'shelly-17' out:3 OFF: MISSING
Aug  6 18:53:01 srv4hai CRON[17708]: (root) CMD (/etc/linetest/linetest.sh)
Aug  6 18:53:16 srv4hai ping_SP[5006]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1722963196 - 'ping_SP_0'
Aug  6 18:53:16 srv4hai ping_SP[5006]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug  6 18:53:26 srv4hai postfix/smtpd[17735]: warning: database /etc/aliases.db is older than source file /etc/aliases
Aug  6 18:53:26 srv4hai postfix/smtpd[17735]: connect from unknown[185.208.158.123]
Aug  6 18:53:27 srv4hai postfix/smtpd[17735]: warning: unknown[185.208.158.123]: SASL LOGIN authentication failed: Invalid authentication mechanism
Aug  6 18:53:27 srv4hai postfix/smtpd[17735]: disconnect from unknown[185.208.158.123] ehlo=1 auth=0/1 quit=1 commands=2/3
Aug  6 18:53:56 srv4hai common[17742]: SHELLY common.sh inkludiert von ./bt_scan.sh
Aug  6 18:54:01 srv4hai CRON[17756]: (root) CMD (/etc/linetest/linetest.sh)
Aug  6 18:54:06 srv4hai bt_scan[17742]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'No'
Aug  6 18:54:06 srv4hai bt_scan[17742]: SHELLY - lost BT-connection to BTmac: '0' found: 'No' - check presence
Aug  6 18:54:06 srv4hai common[17780]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Aug  6 18:54:06 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'10'=1722963246-1722963236
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY (bt_scan)-(0) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'presence'
Aug  6 18:54:06 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'10'=1722963246-1722963236
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Aug  6 18:54:06 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'10'=1722963246-1722963236
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.No
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY (bt_scan)-(0) what: 'presence' - persPresent: '(__/LIVE) (__/__) (__/__)' - anyPresent: 'true' - otherPresent:'false'
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY - check 'presence': anyPresent(true) - lScene(scene_nasszeile_um) - sceneOFF(offAll)
Aug  6 18:54:06 srv4hai check_presence[17780]: SHELLY (bt_scan)-(0)-presence: NOT activate_scenario.shtml: offAll
Aug  6 18:54:17 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=17930, secured, session=
Aug  6 18:54:17 srv4hai dovecot: imap(miglincit)<17930>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Aug  6 18:54:18 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Aug  6 18:54:20 srv4hai fetchmail[1651]: 50170 messages (50170 seen) for tmiglinci at mail.akis.at (-144787434 octets).
Aug  6 18:54:22 srv4hai fetchmail[1651]: 10551 messages (10551 seen) for srozum at mail.akis.at (1267809330 octets).
Aug  6 18:54:25 srv4hai fetchmail[1651]: 25172 messages (25172 seen) for mrozum at mail.akis.at (99016125 octets).
Aug  6 18:54:26 srv4hai fetchmail[1651]: 1139 messages (1139 seen) for admin@bastelstube.wien at pop3.world4you.com (51570784 octets).
Aug  6 18:54:29 srv4hai ping_SP[5006]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1722963269 - 'ping_SP_0'
Aug  6 18:54:29 srv4hai ping_SP[5006]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Aug  6 18:54:50 srv4hai common[17955]: SHELLY common.sh inkludiert von ./bt_scan.sh
Aug  6 18:55:00 srv4hai bt_scan[17955]: SHELLY - who: 'Thomas' / phoneName: 'FP4_Thomas' / '0' / shellyIP: '192.168.12.61' - found: 'Yes'
Aug  6 18:55:00 srv4hai bt_scan[17955]: SHELLY - ping_SP.sh already running for BTmac: '0' - IPv4: '192.168.12.61'
Aug  6 18:55:01 srv4hai CRON[17989]: (root) CMD (/etc/linetest/linetest.sh)
Aug  6 18:55:10 srv4hai activate_scenario[17996]: SHELLY scenario: 'homeOffice(homeoffice)' started
Aug  6 18:55:10 srv4hai activate_scenario[17996]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-40:'Thomas Büro Licht'

finished