activate_scenario.sh
Mon Feb 3 11:34:08 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/02/03/_0.log)

vorher: 11:34:08.573

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: 11:34:08.610
Dauer: 38 msec phName: 'shelly-0:'''


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

urls : 1
vorher : 11:34:08.546
nachher: 11:34:08.617
Dauer : 71 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2025/02/03//scene_pcOFF_20250203_113408.txt'


syslog

Feb  3 11:31:00 srv4hai common[2135]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:31:01 srv4hai CRON[2160]: (root) CMD (/etc/linetest/linetest.sh)
Feb  3 11:31:29 srv4hai fetchmail[1651]: 7 messages (7 seen) for rozmig at mail.akis.at (1753652 octets).
Feb  3 11:31:30 srv4hai fetchmail[1651]: 62822 messages (62822 seen) for tmiglinci at mail.akis.at (843026078 octets).
Feb  3 11:31:30 srv4hai fetchmail[1651]: 11486 messages (11486 seen) for srozum at mail.akis.at (1366372216 octets).
Feb  3 11:31:31 srv4hai fetchmail[1651]: 28704 messages (28703 seen) for mrozum at mail.akis.at (623404197 octets).
Feb  3 11:31:31 srv4hai postfix/smtpd[2003]: connect from localhost[127.0.0.1]
Feb  3 11:31:31 srv4hai postfix/smtpd[2003]: 2F9D46004E: client=localhost[127.0.0.1]
Feb  3 11:31:31 srv4hai postfix/cleanup[2171]: 2F9D46004E: message-id=<8d8fbda7-0a2f-44b2-a99c-18fa83c491c3@facebookmail.com>
Feb  3 11:31:31 srv4hai postfix/qmgr[8566]: 2F9D46004E: from=, size=19549, nrcpt=1 (queue active)
Feb  3 11:31:31 srv4hai fetchmail[1651]: reading message mrozum@mail.akis.at:28704 of 28704 (19280 octets) not flushed
Feb  3 11:31:31 srv4hai postfix/smtpd[2003]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Feb  3 11:31:31 srv4hai postfix/local[2173]: 2F9D46004E: to=, relay=local, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /bin/procmail)
Feb  3 11:31:31 srv4hai postfix/qmgr[8566]: 2F9D46004E: removed
Feb  3 11:31:31 srv4hai fetchmail[1651]: 1162 messages (1162 seen) for admin@bastelstube.wien at pop3.world4you.com (52206525 octets).
Feb  3 11:31:47 srv4hai common[2176]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:31:47 srv4hai common[2200]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:31:59 srv4hai common[2230]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:31:59 srv4hai common[2254]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:00 srv4hai common[2278]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:01 srv4hai CRON[2307]: (root) CMD (/etc/linetest/linetest.sh)
Feb  3 11:32:06 srv4hai ping_SP[12295]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1738578726 - 'ping_SP_0'
Feb  3 11:32:06 srv4hai ping_SP[12295]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb  3 11:32:14 srv4hai systemd[1]: Started Run anacron jobs.
Feb  3 11:32:14 srv4hai anacron[2331]: Anacron 2.3 started on 2025-02-03
Feb  3 11:32:14 srv4hai anacron[2331]: Normal exit (0 jobs run)
Feb  3 11:32:14 srv4hai systemd[1]: anacron.service: Succeeded.
Feb  3 11:32:36 srv4hai mosquitto[29419]: Saving in-memory database to /var/lib/mosquitto/mosquitto.db.
Feb  3 11:32:46 srv4hai dhcpd[4995]: DHCPDISCOVER from 44:17:93:a5:8a:e4 via enp2s0
Feb  3 11:32:46 srv4hai dhcpd[4995]: DHCPOFFER on 192.168.12.147 to 44:17:93:a5:8a:e4 via enp2s0
Feb  3 11:32:46 srv4hai dhcpd[4995]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Feb  3 11:32:46 srv4hai dhcpd[4995]: execute_statement argv[1] = 192.168.12.147
Feb  3 11:32:46 srv4hai dhcpd[4995]: execute_statement argv[2] = shelly-47
Feb  3 11:32:46 srv4hai dhcpd[4995]: DHCPREQUEST for 192.168.12.147 (192.168.12.252) from 44:17:93:a5:8a:e4 via enp2s0
Feb  3 11:32:46 srv4hai dhcpd[4995]: DHCPACK on 192.168.12.147 to 44:17:93:a5:8a:e4 via enp2s0
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9348090720 192.168.12.252#40845/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-47.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9348081920 192.168.12.252#33987/key rndc-key: signer "rndc-key" approved
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9348081920 192.168.12.252#33987/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-47.viehai.at' TXT
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9348081920 192.168.12.252#33987/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-47.viehai.at' TXT "31f97534415d36e3a13ec57b0310c0867f"
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9348081920 192.168.12.252#33987/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-47.viehai.at' A
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9348081920 192.168.12.252#33987/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-47.viehai.at' A 192.168.12.147
Feb  3 11:32:46 srv4hai dhcpd[4995]: Added new forward map from shelly-47.viehai.at to 192.168.12.147
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#48545/key rndc-key: signer "rndc-key" approved
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#48545/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '147.12.168.192.in-addr.arpa' PTR
Feb  3 11:32:46 srv4hai named[30406]: client @0x7f9338022410 192.168.12.252#48545/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.
Feb  3 11:32:46 srv4hai dhcpd[4995]: Added reverse map from 147.12.168.192.in-addr.arpa. to shelly-47.viehai.at
Feb  3 11:32:46 srv4hai common[2338]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Feb  3 11:32:46 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-47' - shIP/2:'' perform:'conf'
Feb  3 11:32:47 srv4hai common[2350]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:47 srv4hai common[2380]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:47 srv4hai mosquitto[29419]: New connection from 192.168.12.147 on port 1883.
Feb  3 11:32:47 srv4hai mosquitto[29419]: Client shellyplus1-441793a58ae4 already connected, closing old connection.
Feb  3 11:32:47 srv4hai mosquitto[29419]: Socket error on client shellyplus1-441793a58ae4, disconnecting.
Feb  3 11:32:47 srv4hai mosquitto[29419]: New client connected from 192.168.12.147 as shellyplus1-441793a58ae4 (c1, k60, u'shmqtt').
Feb  3 11:32:47 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-47' - shIP/2:'192.168.12.147'
Feb  3 11:32:47 srv4hai conf_shelly.sh: SHELLY: usage/name 'GB Schreibtischlampe links' already set for '192.168.12.147'
Feb  3 11:32:47 srv4hai conf_shelly.sh: SHELLY:'shelly-47' 'conf(0)' - allready transmitted - skipping
Feb  3 11:32:47 srv4hai conf_shelly.sh: SHELLY:'shelly-47' 'conf(1)' - allready transmitted - skipping
Feb  3 11:32:47 srv4hai conf_shelly.sh: SHELLY:'shelly-47' 'conf(2)' - allready transmitted - skipping
Feb  3 11:32:48 srv4hai common[2486]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:48 srv4hai common[2512]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:59 srv4hai common[2555]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:32:59 srv4hai common[2579]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:33:00 srv4hai common[2603]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:33:01 srv4hai CRON[2628]: (root) CMD (/etc/linetest/linetest.sh)
Feb  3 11:33:20 srv4hai ping_SP[12295]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1738578800 - 'ping_SP_0'
Feb  3 11:33:20 srv4hai ping_SP[12295]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Feb  3 11:33:38 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=2664, secured, session=<3/blbDotWL0AAAAAAAAAAAAAAAAAAAAB>
Feb  3 11:33:38 srv4hai dovecot: imap(miglincit)<2664><3/blbDotWL0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=137 out=1087 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  3 11:33:47 srv4hai common[2665]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:33:47 srv4hai common[2690]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:33:59 srv4hai common[2717]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:33:59 srv4hai common[2741]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:34:00 srv4hai common[2765]: SHELLY common.sh inkludiert von ./mqtt_process.sh
Feb  3 11:34:01 srv4hai CRON[2790]: (root) CMD (/etc/linetest/linetest.sh)
Feb  3 11:34:07 srv4hai dovecot: imap(miglincit)<30091>: Connection closed (UID fetch finished 0.757 secs ago) in=2230876 out=23952846 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  3 11:34:07 srv4hai dovecot: imap(miglincit)<30089>: Connection closed (select finished 0.950 secs ago) in=2251556 out=22536301 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  3 11:34:07 srv4hai dovecot: imap(miglincit)<30087>: Connection closed (UID fetch finished 1.022 secs ago) in=2252843 out=23474335 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  3 11:34:07 srv4hai dovecot: imap(miglincit)<30093>: Connection closed (UID fetch finished 1.084 secs ago) in=2261950 out=23020011 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Feb  3 11:34:07 srv4hai dovecot: imap(miglincit)<30092>: Connection closed (IDLE running for 0.001 + waiting input for 5.192 secs, 2 B in + 10 B out, state=wait-input) in=14789 out=2627686 deleted=0 expunged=0 trashed=0 hdr_count=22 hdr_bytes=8567 body_count=22 body_bytes=2486615
Feb  3 11:34:08 srv4hai activate_scenario[2797]: SHELLY scenario: 'pcOFF(pcoff)' started
Feb  3 11:34:08 srv4hai activate_scenario[2797]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - shelly-0:''

finished