activate_scenario.sh
Sun Jan 5 12:10:50 CET 2025
scenario: pcOFF
source: 192.168.12.10

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

scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

TB Schreibtischlampe (/srv/www/viehai/shelly/log_scenarios/2025/01/05/_0.log)

vorher: 12:10:50.357

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

nachher: 12:10:50.389
Dauer: 31 msec phName: 'shelly-0:'''


scenario: 'Schreibtisch Thomas AUS-schalten' - 'pcOFF' - 'pcoff'

urls : 1
vorher : 12:10:50.321
nachher: 12:10:50.395
Dauer : 75 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/01/05//scene_pcOFF_20250105_121050.txt'


syslog

Jan  5 12:07:01 srv4hai CRON[27196]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 12:07:05 srv4hai fetchmail[1651]: 11341 messages (11341 seen) for srozum at mail.akis.at (1355366635 octets).
Jan  5 12:07:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27209, secured, session=
Jan  5 12:07:14 srv4hai dovecot: imap(rozumm)<27209>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:07:17 srv4hai fetchmail[1651]: 28174 messages (28174 seen) for mrozum at mail.akis.at (540224053 octets).
Jan  5 12:07:17 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Jan  5 12:07:51 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1736075271 - 'ping_SP_0'
Jan  5 12:07:51 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan  5 12:08:01 srv4hai CRON[27249]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 12:08:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27257, secured, session=
Jan  5 12:08:14 srv4hai dovecot: imap(rozumm)<27257>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:09:01 srv4hai CRON[27281]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 12:09:01 srv4hai CRON[27282]: (root) CMD (  [ -x /usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then /usr/lib/php/sessionclean; fi)
Jan  5 12:09:01 srv4hai systemd[1]: Starting Clean php session files...
Jan  5 12:09:01 srv4hai systemd[1]: phpsessionclean.service: Succeeded.
Jan  5 12:09:01 srv4hai systemd[1]: Started Clean php session files.
Jan  5 12:09:04 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1736075344 - 'ping_SP_0'
Jan  5 12:09:04 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan  5 12:09:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27395, secured, session=<3p/PivMq3MMAAAAAAAAAAAAAAAAAAAAB>
Jan  5 12:09:14 srv4hai dovecot: imap(rozumm)<27395><3p/PivMq3MMAAAAAAAAAAAAAAAAAAAAB>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:09:26 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=27403, secured, session=
Jan  5 12:09:26 srv4hai dovecot: imap(miglincit)<27403>: Logged out in=2088 out=165919 deleted=0 expunged=0 trashed=0 hdr_count=256 hdr_bytes=91532 body_count=0 body_bytes=0
Jan  5 12:09:27 srv4hai mosquitto[29419]: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
Jan  5 12:09:47 srv4hai dhcpd[4995]: DHCPDISCOVER from 98:cd:ac:2d:c5:cd via enp2s0
Jan  5 12:09:47 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.120 to 98:cd:ac:2d:c5:cd via enp2s0
Jan  5 12:09:47 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jan  5 12:09:47 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.120
Jan  5 12:09:47 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-20
Jan  5 12:09:47 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.120 (192.168.12.252) from 98:cd:ac:2d:c5:cd via enp2s0
Jan  5 12:09:47 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.120 to 98:cd:ac:2d:c5:cd via enp2s0
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f93100e1310 192.168.12.252#38739/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-20.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f9350166000 192.168.12.252#42461/key rndc-key: signer "rndc-key" approved
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f9350166000 192.168.12.252#42461/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-20.viehai.at' TXT
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f9350166000 192.168.12.252#42461/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-20.viehai.at' TXT "009bbe3438977123c398f031397c5087ad"
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f9350166000 192.168.12.252#42461/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-20.viehai.at' A
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f9350166000 192.168.12.252#42461/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-20.viehai.at' A 192.168.12.120
Jan  5 12:09:47 srv4hai dhcpd[4995]: Added new forward map from shelly-20.viehai.at to 192.168.12.120
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f935012c1c0 192.168.12.252#34007/key rndc-key: signer "rndc-key" approved
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f935012c1c0 192.168.12.252#34007/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '120.12.168.192.in-addr.arpa' PTR
Jan  5 12:09:47 srv4hai named[30406]: client @0x7f935012c1c0 192.168.12.252#34007/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '120.12.168.192.in-addr.arpa' PTR shelly-20.viehai.at.
Jan  5 12:09:47 srv4hai dhcpd[4995]: Added reverse map from 120.12.168.192.in-addr.arpa. to shelly-20.viehai.at
Jan  5 12:09:47 srv4hai common[27407]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jan  5 12:09:47 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-20' - shIP/2:'' perform:'conf'
Jan  5 12:09:48 srv4hai mosquitto[29419]: New connection from 192.168.12.120 on port 1883.
Jan  5 12:09:48 srv4hai mosquitto[29419]: Client shelly1-98CDAC2DC5CD already connected, closing old connection.
Jan  5 12:09:48 srv4hai mosquitto[29419]: Socket error on client shelly1-98CDAC2DC5CD, disconnecting.
Jan  5 12:09:48 srv4hai mosquitto[29419]: New client connected from 192.168.12.120 as shelly1-98CDAC2DC5CD (c1, k60, u'shmqtt').
Jan  5 12:09:48 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-20' - shIP/2:'192.168.12.120'
Jan  5 12:09:48 srv4hai conf_shelly.sh: SHELLY: usage/name 'TB Schreibtischlampe' already set for '192.168.12.120'
Jan  5 12:09:48 srv4hai conf_shelly.sh: SHELLY:'shelly-20' 'conf(0)' - allready transmitted - skipping
Jan  5 12:09:48 srv4hai conf_shelly.sh: SHELLY:'shelly-20' 'conf(1)' - allready transmitted - skipping
Jan  5 12:09:48 srv4hai conf_shelly.sh: SHELLY:'shelly-20' 'conf(2)' - allready transmitted - skipping
Jan  5 12:09:48 srv4hai conf_shelly.sh: SHELLY:'shelly-20' 'conf(3)' - allready transmitted - skipping
Jan  5 12:10:01 srv4hai CRON[27507]: (www-data) CMD (/srv/www/viehai/shelly/meter.sh)
Jan  5 12:10:01 srv4hai CRON[27508]: (root) CMD (/etc/linetest/linetest.sh)
Jan  5 12:10:01 srv4hai common[27509]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/meter.sh
Jan  5 12:10:01 srv4hai meter.sh: SHELLY meter.sh started
Jan  5 12:10:02 srv4hai meter.sh: SHELLY 'shelly-29/KÜ Schalter Herdzeile' - type: 'shelly-i3' ignoring
Jan  5 12:10:02 srv4hai meter.sh: SHELLY 'shelly-28/KÜ Schalter Nasszeile' - type: 'shelly-i3' ignoring
Jan  5 12:10:06 srv4hai meter.sh: SHELLY 'shelly-13/Thomas Taster' - type: 'shelly-BTN' ignoring
Jan  5 12:10:06 srv4hai meter.sh: SHELLY 'shelly-14/AUS-Schalter' - type: 'shelly-BTN' ignoring
Jan  5 12:10:06 srv4hai meter.sh: SHELLY 'shelly-37/TB Klima' - type: 'shelly-ht' ignoring
Jan  5 12:10:06 srv4hai meter.sh: SHELLY 'shelly-38/Wetterwerte Innen' - status: 'OOS' ignoring
Jan  5 12:10:06 srv4hai meter.sh: SHELLY 'shelly-39/Wetterwerte Balkon' - type: 'shelly-ht-plus' ignoring
Jan  5 12:10:09 srv4hai meter.sh: SHELLY 'shelly-18/18-Test Farbige LED':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-15/15-Test Weiss':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-30/30-TBD' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-31/31-Test i3' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-32/32-TBD' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-33/33-TBD' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-36/36-TBD' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-09a/Inbetriebnahme - 20210720 - Defekt' - status: 'defect' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-09b/Sophie Licht - 20230404 - Defekt' - status: 'defect' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-26/20230404 - kein WLAN' - status: 'defect' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-27/Schalter Herdzeile - Defekt WLAN 20230417' - status: 'defect' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-21/Badezimmer - 20230720 - WLAN Problem' - status: 'defect' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-11/Ausgangstransistor defekt 20230722' - status: 'defect' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-01a/WZ Licht Esstisch - 20241208 kein WLAN' - status: 'DFC' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-43/43-tbd' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-44/44-TBD' - status: 'OOS' ignoring
Jan  5 12:10:12 srv4hai meter.sh: SHELLY 'shelly-46/46-TBD' - status: 'OOS' ignoring
Jan  5 12:10:14 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=28603, secured, session=
Jan  5 12:10:14 srv4hai dovecot: imap(rozumm)<28603>: Logged out in=92 out=1062 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:10:15 srv4hai meter.sh: SHELLY 'shelly-50/50-TBD':  OFFLINE, resp. not answering within connect-timeout 2.500000s
Jan  5 12:10:15 srv4hai meter.sh: SHELLY 'shelly-59/Werkstatt Schalter Kellertür' - type: 'shelly-i3' ignoring
Jan  5 12:10:15 srv4hai common[28637]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_shelly.sh
Jan  5 12:10:15 srv4hai check_shelly.sh: SHELLY last scenery executed: 'pcON'
Jan  5 12:10:15 srv4hai check_shelly.sh: SHELLY found '6' active shelly outputs
Jan  5 12:10:15 srv4hai meter.sh: SHELLY meter.sh ended
Jan  5 12:10:16 srv4hai postfix/anvil[27154]: statistics: max connection rate 1/60s for (smtp:80.94.95.239) at Jan  5 12:06:22
Jan  5 12:10:16 srv4hai postfix/anvil[27154]: statistics: max connection count 1 for (smtp:80.94.95.239) at Jan  5 12:06:22
Jan  5 12:10:16 srv4hai postfix/anvil[27154]: statistics: max cache size 1 at Jan  5 12:06:22
Jan  5 12:10:17 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1736075417 - 'ping_SP_0'
Jan  5 12:10:17 srv4hai ping_SP[17680]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jan  5 12:10:18 srv4hai postfix/smtpd[28675]: connect from unknown[80.94.95.239]
Jan  5 12:10:20 srv4hai postfix/smtpd[28675]: warning: unknown[80.94.95.239]: SASL LOGIN authentication failed: Invalid authentication mechanism
Jan  5 12:10:22 srv4hai postfix/smtpd[28675]: disconnect from unknown[80.94.95.239] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Jan  5 12:10:30 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=28685, secured, session=
Jan  5 12:10:31 srv4hai dovecot: imap(miglincit)<28685>: Logged out in=443 out=140223 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=443 body_count=1 body_bytes=138031
Jan  5 12:10:42 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=28689, secured, session=
Jan  5 12:10:42 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=28691, secured, session=
Jan  5 12:10:42 srv4hai dovecot: imap(miglincit)<28691>: Logged out in=397 out=28812 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=450 body_count=1 body_bytes=26879
Jan  5 12:10:42 srv4hai dovecot: imap(miglincit)<28689>: Logged out in=676 out=37193 deleted=0 expunged=0 trashed=1 hdr_count=11 hdr_bytes=2891 body_count=0 body_bytes=0
Jan  5 12:10:49 srv4hai dovecot: imap(miglincit)<19374>: Logged out in=5501 out=4395564 deleted=0 expunged=0 trashed=0 hdr_count=57 hdr_bytes=20783 body_count=57 body_bytes=4258331
Jan  5 12:10:49 srv4hai dovecot: imap(miglincit)<19375>: Logged out in=282298 out=3060114 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:10:49 srv4hai dovecot: imap(miglincit)<19373>: Connection closed (IDLE running for 0.001 + waiting input for 0.769 secs, 2 B in + 10 B out, state=wait-input) in=274419 out=2825973 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:10:49 srv4hai dovecot: imap(miglincit)<19371>: Connection closed (IDLE running for 0.001 + waiting input for 0.769 secs, 2 B in + 10 B out, state=wait-input) in=273884 out=3011361 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=334 body_count=1 body_bytes=27475
Jan  5 12:10:49 srv4hai dovecot: imap(miglincit)<19372><5b4cR/MqyMPAqAwK>: Connection closed (IDLE running for 0.001 + waiting input for 0.756 secs, 2 B in + 10 B out, state=wait-input) in=280356 out=2875895 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jan  5 12:10:50 srv4hai activate_scenario[28694]: SHELLY last scenario: 'pcON' @ '115004' from 'scene_pcON_20250105_115004.txt' - delta=-46
Jan  5 12:10:50 srv4hai activate_scenario[28694]:        dateutils.ddiff -i '%Y%m%d%H%M%s' 20250105121050 20250105115004  -f '%S'
Jan  5 12:10:50 srv4hai activate_scenario[28694]: SHELLY  new scenario: 'pcOFF' different - GO ON
Jan  5 12:10:50 srv4hai activate_scenario[28694]: SHELLY scenario: 'pcOFF(pcoff)' started
Jan  5 12:10:50 srv4hai activate_scenario[28694]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-0:''

finished