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 off
It's the presence switch and it's flooding the logs by every time on/off when a phone is there.
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)
I do not have password protection on the switches, I have password protection on Domoticz login.
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=test1234
You can try pip to install the dependencies manually:
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