activate_scenario.sh
Fri Jul 5 15:45:57 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/07/05/_0.log)

vorher: 15:45:57.943

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: 15:45:58.011
Dauer: 69 msec phName: 'phoneName:'1''


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

urls : 1
vorher : 15:45:57.923
nachher: 15:45:58.017
Dauer : 95 msec
outfile: '/srv/www/viehai/shelly/log_scenarios/2024/07/05//scene_vorraumOn_20240705_154557.txt'


syslog

Jul  5 15:42:01 srv4hai CRON[20876]: (root) CMD (/etc/linetest/linetest.sh)
Jul  5 15:42:09 srv4hai postfix/anvil[18881]: statistics: max connection rate 1/60s for (smtp:178.215.236.221) at Jul  5 15:38:48
Jul  5 15:42:09 srv4hai postfix/anvil[18881]: statistics: max connection count 1 for (smtp:178.215.236.221) at Jul  5 15:38:48
Jul  5 15:42:09 srv4hai postfix/anvil[18881]: statistics: max cache size 1 at Jul  5 15:38:48
Jul  5 15:42:28 srv4hai mosquitto[18551]: Client shellyht-00B358 has exceeded timeout, disconnecting.
Jul  5 15:42:28 srv4hai mosquitto[18551]: Socket error on client shellyht-00B358, disconnecting.
Jul  5 15:42:59 srv4hai ping_SP[14326]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1720186979 - 'ping_SP_0'
Jul  5 15:42:59 srv4hai ping_SP[14326]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  5 15:43:01 srv4hai CRON[20908]: (root) CMD (/etc/linetest/linetest.sh)
Jul  5 15:43:07 srv4hai cp2usb.sh: CP2USB - START @ Fri Jul  5 15:43:07 CEST 2024
Jul  5 15:43:07 srv4hai cp2usb.sh: CP2USB - params DEVNAME:'/dev/sdd1' ACTION:'change'
Jul  5 15:43:07 srv4hai cp2usb.sh: CP2USB - ENDED due to 'change' @ Fri Jul  5 15:43:07 CEST 2024
Jul  5 15:43:07 srv4hai systemd-udevd[20958]: Process '/etc/bup/cp2usb.sh sdd1' failed with exit code 1.
Jul  5 15:43:07 srv4hai cp2usb.sh: CP2USB - START @ Fri Jul  5 15:43:07 CEST 2024
Jul  5 15:43:07 srv4hai cp2usb.sh: CP2USB - params DEVNAME:'/dev/sdd1' ACTION:'change'
Jul  5 15:43:07 srv4hai cp2usb.sh: CP2USB - ENDED due to 'change' @ Fri Jul  5 15:43:07 CEST 2024
Jul  5 15:43:07 srv4hai systemd-udevd[20958]: Process '/etc/bup/cp2usb.sh sdd1' failed with exit code 1.
Jul  5 15:44:01 srv4hai CRON[21077]: (root) CMD (/etc/linetest/linetest.sh)
Jul  5 15:44:12 srv4hai ping_SP[14326]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1720187052 - 'ping_SP_0'
Jul  5 15:44:12 srv4hai ping_SP[14326]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  5 15:44:28 srv4hai dhcpd[30731]: uid lease 192.168.12.40 for client ec:da:3b:c6:1d:3c is duplicate on 192.168.12.0/24
Jul  5 15:44:28 srv4hai dhcpd[30731]: DHCPDISCOVER from ec:da:3b:c6:1d:3c via enp2s0
Jul  5 15:44:28 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.150 to ec:da:3b:c6:1d:3c via enp2s0
Jul  5 15:44:28 srv4hai dhcpd[30731]: uid lease 192.168.12.40 for client ec:da:3b:c6:1d:3c is duplicate on 192.168.12.0/24
Jul  5 15:44:28 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/json.sh
Jul  5 15:44:28 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.150
Jul  5 15:44:28 srv4hai dhcpd[30731]: execute_statement argv[2] = shelly-50
Jul  5 15:44:28 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.150 (192.168.12.252) from ec:da:3b:c6:1d:3c via enp2s0
Jul  5 15:44:28 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.150 to ec:da:3b:c6:1d:3c via enp2s0
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f933806a720 192.168.12.252#48769/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: shelly-50.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f934c0733f0 192.168.12.252#46763/key rndc-key: signer "rndc-key" approved
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f934c0733f0 192.168.12.252#46763/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-50.viehai.at' TXT
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f934c0733f0 192.168.12.252#46763/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-50.viehai.at' TXT "31ddfcf6e79cbbdf4e55e03247020075f9"
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f934c0733f0 192.168.12.252#46763/key rndc-key: updating zone 'viehai.at/IN': deleting rrset at 'shelly-50.viehai.at' A
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f934c0733f0 192.168.12.252#46763/key rndc-key: updating zone 'viehai.at/IN': adding an RR at 'shelly-50.viehai.at' A 192.168.12.150
Jul  5 15:44:28 srv4hai dhcpd[30731]: Added new forward map from shelly-50.viehai.at to 192.168.12.150
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#55457/key rndc-key: signer "rndc-key" approved
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#55457/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': deleting rrset at '150.12.168.192.in-addr.arpa' PTR
Jul  5 15:44:28 srv4hai named[30406]: client @0x7f93506a3ad0 192.168.12.252#55457/key rndc-key: updating zone '12.168.192.in-addr.arpa/IN': adding an RR at '150.12.168.192.in-addr.arpa' PTR shelly-50.viehai.at.
Jul  5 15:44:28 srv4hai dhcpd[30731]: Added reverse map from 150.12.168.192.in-addr.arpa. to shelly-50.viehai.at
Jul  5 15:44:28 srv4hai common[21102]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/grab_shelly.sh
Jul  5 15:44:28 srv4hai grab_shelly.sh: SHELLY shellyName/1:'shelly-50' - shIP/2:'' perform:'conf'
Jul  5 15:44:28 srv4hai conf_shelly.sh: SHELLY: PARAMS  shName/1:'shelly-50' - shIP/2:'192.168.12.150'
Jul  5 15:44:28 srv4hai mosquitto[18551]: New connection from 192.168.12.150 on port 1883.
Jul  5 15:44:28 srv4hai mosquitto[18551]: Client shellypmminig3-ecda3bc61d3c already connected, closing old connection.
Jul  5 15:44:28 srv4hai mosquitto[18551]: Socket error on client shellypmminig3-ecda3bc61d3c, disconnecting.
Jul  5 15:44:28 srv4hai mosquitto[18551]: New client connected from 192.168.12.150 as shellypmminig3-ecda3bc61d3c (c1, k60, u'shmqtt').
Jul  5 15:44:28 srv4hai conf_shelly.sh: SHELLY: usage/name '50-TBD' already set for '192.168.12.150'
Jul  5 15:44:28 srv4hai conf_shelly.sh: SHELLY:'shelly-50' no WebHook
Jul  5 15:44:29 srv4hai dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid=21136, secured, session=
Jul  5 15:44:29 srv4hai dovecot: imap(miglincit)<21136>: Logged out in=653 out=1232 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Jul  5 15:45:00 srv4hai smartd[27489]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 48 to 47
Jul  5 15:45:01 srv4hai CRON[21160]: (root) CMD (/etc/linetest/linetest.sh)
Jul  5 15:45:26 srv4hai ping_SP[14326]: SHELLY (0) - ping 192.168.12.61 1 sucessfully  @~1720187126 - 'ping_SP_0'
Jul  5 15:45:26 srv4hai ping_SP[14326]: SHELLY (0) - ping 192.168.12.61 pCnt:'1'
Jul  5 15:45:37 srv4hai dhcpd[30731]: DHCPDISCOVER from f0:39:65:25:8d:c7 via enp2s0
Jul  5 15:45:37 srv4hai dhcpd[30731]: DHCPOFFER on 192.168.12.62 to f0:39:65:25:8d:c7 via enp2s0
Jul  5 15:45:37 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  5 15:45:37 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.62
Jul  5 15:45:37 srv4hai dhcpd[30731]: execute_statement argv[2] = GreteS20
Jul  5 15:45:37 srv4hai common[21190]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  5 15:45:47 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.62' / 'GreteS20' / '1'
Jul  5 15:45:47 srv4hai common[21205]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jul  5 15:45:47 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.62 (192.168.12.252) from f0:39:65:25:8d:c7 via enp2s0
Jul  5 15:45:47 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.62 to f0:39:65:25:8d:c7 via enp2s0
Jul  5 15:45:47 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  5 15:45:47 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.62
Jul  5 15:45:47 srv4hai dhcpd[30731]: execute_statement argv[2] = GreteS20
Jul  5 15:45:47 srv4hai common[21218]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  5 15:45:47 srv4hai ping_SP[21205]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jul  5 15:45:57 srv4hai smartphone.sh: SHELLY - ping_SP.sh started for phoneIP: '192.168.12.62' / 'GreteS20' / '1'
Jul  5 15:45:57 srv4hai common[21244]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//ping_SP.sh
Jul  5 15:45:57 srv4hai dhcpd[30731]: DHCPREQUEST for 192.168.12.62 (192.168.12.252) from f0:39:65:25:8d:c7 via enp2s0
Jul  5 15:45:57 srv4hai dhcpd[30731]: DHCPACK on 192.168.12.62 to f0:39:65:25:8d:c7 via enp2s0
Jul  5 15:45:57 srv4hai dhcpd[30731]: execute_statement argv[0] = /srv/www/viehai/shelly/smartphone.sh
Jul  5 15:45:57 srv4hai dhcpd[30731]: execute_statement argv[1] = 192.168.12.62
Jul  5 15:45:57 srv4hai dhcpd[30731]: execute_statement argv[2] = GreteS20
Jul  5 15:45:57 srv4hai named[30406]: client @0x7f93100debd0 192.168.12.252#51443/key rndc-key: updating zone 'viehai.at/IN': update unsuccessful: GreteS20.viehai.at: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jul  5 15:45:57 srv4hai common[21262]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly//check_presence.sh
Jul  5 15:45:57 srv4hai common[21265]: SHELLY common.sh inkludiert von /srv/www/viehai/shelly/smartphone.sh
Jul  5 15:45:57 srv4hai ping_SP[21244]: SHELLY ping_SP.sh started from smartphone, user:'root'
Jul  5 15:45:57 srv4hai common.sh: SHELLY: BTstatus[0]:'Off' dweetAge:'11'=1720187157-1720187146
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (0) found /srv/www/viehai/shelly//meter/ping_SP_0.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_0.No
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (ping_SP__smartphone)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_0.LIVE' for what: 'coming'
Jul  5 15:45:57 srv4hai common.sh: SHELLY: BTstatus[1]:'Off' dweetAge:'11'=1720187157-1720187146
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (1) found /srv/www/viehai/shelly//meter/ping_SP_1.LIVE and Off//srv/www/viehai/shelly//meter/BTscan_BTid_1.No
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (ping_SP__smartphone)-(1) found '/srv/www/viehai/shelly//meter/ping_SP_1.LIVE' for what: 'coming'
Jul  5 15:45:57 srv4hai common.sh: SHELLY: BTstatus[2]:'Off' dweetAge:'11'=1720187157-1720187146
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (2) found /srv/www/viehai/shelly//meter/ping_SP_2.DEAD and Off//srv/www/viehai/shelly//meter/BTscan_BTid_2.Yes
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (ping_SP__smartphone)-(1) what: 'coming' - persPresent: '(__/LIVE) (__/LIVE) (__/__)' - anyPresent: 'true' - otherPresent:'true'
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY - check 'coming': anyPresent(true) - lScene(scene_pcON) - sceneONsmall(vorraumOn)
Jul  5 15:45:57 srv4hai check_presence[21262]: SHELLY (ping_SP__smartphone)-(1)-coming: activate_scenario.shtml: vorraumOn
Jul  5 15:45:57 srv4hai activate_scenario[21429]: SHELLY scenario: 'vorraumOn(vorraumon)' started
Jul  5 15:45:57 srv4hai activate_scenario[21429]: SHELLY dayState='day' <--> DayTime=checked NightTime=checked - phoneName:'1'

finished