Somehow i liked the iDetect way but thats history as the Asus went out
So back to the roots and looking for a other way.
Moderator: leecollings
Wich Logging do you mean it can be switched offPrutsium wrote: Tuesday 27 August 2019 9:28 Damn .... this created a Kazillion log entries as every time it sets the switch off and on .......
Somehow i liked the iDetect way but thats history as the Asus went out
So back to the roots and looking for a other way.
Is this your présence switch? Or phone switch. My phone switch is logging only for about 5 times a day when i arrive or leave the housePrutsium wrote: Tuesday 27 August 2019 10:21 Ps ... this happens when a phone is present:
Seems the switch is everytime also triggered On/Off .....
It's the presence switch and it's flooding the logs by every time on/off when a phone is there.funky wrote: Tuesday 27 August 2019 11:12 Is this your présence switch? Or phone switch. My phone switch is logging only for about 5 times a day when i arrive or leave the house
Code: Select all
If 'Anyone home' = Off AND Phone1 = On OR Phone2 = On OR Phone3 = On
Set 'Anyone home = On
Else If 'Anyone home' = On AND Phone1 = Off AND Phone2 = Off AND Phone3 = Off
Set 'Anyone home = Off
Thanks thought already so as it's easy to mess up in Blockly.AllesVanZelf wrote: Tuesday 27 August 2019 17:09 Hi Prutsium,
You made a mistake in your blockly.That is why your log is running wild.
If presence is {on} AND ( phone1 = {off) AND phone2 = {off} AND phone3 = {off} )
Do presence is {Off}
Like in my earlier post:The Or's between the phones should be AND's. Otherwise Else If is almost always trueCode: Select all
If 'Anyone home' = Off AND Phone1 = On OR Phone2 = On OR Phone3 = On Set 'Anyone home = On Else If 'Anyone home' = On AND Phone1 = Off AND Phone2 = Off AND Phone3 = Off Set 'Anyone home = Off
Yes, it created the dummy switches after I disabled username/password protection of domoticz. However, I need that to be enabled, because I also access Domoticz from outside my networkfunky wrote: Monday 23 December 2019 13:25 1. As i can see the script is retrieving information from domoticz, that works. But does the script setting your dummy switches correctly? Are the idx ok? Maybe something went wrong bij making the dummie switches by the scripts since your Domoticz was password protected?.
The repeater IP is set. Problem was is set my devices to active while the fritz console shows them as not connected (also after 1 hour). The script is able to find the correct switches, because when I manually change the value to OFF (in domoticz webgui) the script will change them back to active/ON (as shown in de debug I shared)funky wrote: Monday 23 December 2019 13:25 2. The script works also with the WLAN table in your example the New active:1 means that its online and the Newactive:0 means it’s offline. Sometimes there is a lag of a minute. Or the repeater ip is not set.
I do not have password protection on the switches, I have password protection on Domoticz login.funky wrote: Monday 23 December 2019 13:25 What you can do it remove the dummy switches inside Domoticz, remove the config.txt , remove the password protection of the lightswitches. And do a reinstall.
Code: Select all
http://domoticz ip/json.html?type=commandtype=command¶m=switchlight&idx=<IDX OFF DEVICE YOU WANT TO SET&switchcmd=<ON of OFF>&passcode=Lightswitch pasword. Code: Select all
http://192.168.178.33:8080/json.htm?type=command¶m=switchlight&idx=494&switchcmd=Off&passcode=test1234You can try pip to install the dependencies manually:florisi wrote: Sunday 29 December 2019 14:02 Hello,
i'm running Domoticz on a Synology.
How can I install this on a Synology.
When I start the installer it says Dependencies should be installed, but then I got an error about apt-get.
What to do?
Thanks
Code: Select all
checking for cl.exe... no
configure: error: in `/tmp/easy_install-AUWES3/jq-0.1.6/onig-5.9.6':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Traceback (most recent call last):
File "/bin/easy_install", line 9, in <module>
load_entry_point('setuptools==25.1.6', 'console_scripts', 'easy_install')()
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 2271, in main
**kw
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 409, in run
self.easy_install(spec, not self.no_deps)
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 664, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 694, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 875, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1114, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1100, in run_setup
run_setup(setup_script, args)
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 249, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 197, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 168, in save_modules
saved_exc.resume()
File "/usr/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 142, in resume
type, exc = map(pickle.loads, self._saved)
File "/usr/lib/python2.7/pickle.py", line 1388, in loads
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/lib/python2.7/pickle.py", line 1139, in load_reduce
value = func(*args)
TypeError: __init__() takes at least 3 arguments (1 given)[/quote][/quote]
pauwauw wrote: Tuesday 24 December 2019 12:17
I do not have password protection on the switches, I have password protection on Domoticz login.
I would like to know if username/password can be passed along (not just the password for switch protection). If not, I am afraid I won't be able to use the script.
I would send you a PM, but as a new member I am not allowed![]()
Users browsing this forum: No registered users and 1 guest