I did understand. Thank you.
I think both ways would work. Now that I have it working, I don’t want to upset it again by changing!
Search found 32 matches
- Tuesday 05 December 2017 17:33
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1717
- Views: 445295
- Tuesday 05 December 2017 17:00
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1717
- Views: 445295
Re: homebridge-edomoticz Plugin
But why you have to set different platform for any roomid? You can configure a plan in domoticz like "homebridge" and add in this plan only, and all, devices you want to have in Homebridge.. The reason I am using roomid is to control which accessories are available to Homebridge (via the Domoticz ...
- Tuesday 05 December 2017 15:25
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1717
- Views: 445295
Re: homebridge-edomoticz Plugin
I had everything working just fine, but then I updated to the latest version of Homebridge and homebridge-edomoticz and I started to get errors like this when I started homebridge: Dec 04 16:18:11 milos homebridge[6607]: Error: Cannot add a bridged Accessory with the same UUID as another bridged ...
- Monday 04 December 2017 18:15
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1717
- Views: 445295
Re: homebridge-edomoticz Plugin
Yes I removed the directories and re-added to HomeKit. I even changed the username and pin in config.json.
- Monday 04 December 2017 17:53
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1717
- Views: 445295
Re: homebridge-edomoticz Plugin
I had everything working just fine, but then I updated to the latest version of Homebridge and homebridge-edomoticz and I started to get errors like this when I started homebridge: Dec 04 16:18:11 milos homebridge[6607]: Error: Cannot add a bridged Accessory with the same UUID as another bridged ...
- Monday 04 December 2017 17:23
- Forum: iOS
- Topic: homebridge-edomoticz Plugin
- Replies: 1717
- Views: 445295
Re: homebridge-edomoticz Plugin
Is it possible, to have several sections in config.json to handle serveral rooms between domoticz and appl home or can I only use one section with one room? Thanks a lot. Yes. You should create rooms in Domoticz>Setup>More Options>Plans>Roomplan and add devices to those. You then need one entry for ...
- Monday 22 May 2017 21:55
- Forum: LUA
- Topic: Garden watering
- Replies: 6
- Views: 1665
Re: Garden watering
Ah, got it! How about making a dummy switch that you turn on once a day with a timer (e.g. At sunset). Then you use a device script to catch the 'On', check your rain meter, increment the var if necessary. You can then either switch the dummy off in the script or have an auto off after some seconds ...
- Monday 22 May 2017 20:34
- Forum: LUA
- Topic: Garden watering
- Replies: 6
- Views: 1665
Re: Garden watering
(I think I understand you, but do post back if not!) If your conditional test is correct, you just need to say: regenteller = regenteller+1 If you need to use another variable to increase the value of regenteller, you need to ensure that you round up or down so that it's also an integer: regenteller ...
- Monday 22 May 2017 19:10
- Forum: LUA
- Topic: Lua PIR problem - Switching off too early
- Replies: 6
- Views: 1893
Re: Lua PIR problem - Switching off too early
Well that's another strange thing: the Friedland one (which I am concentrating on) never seems to go 'On' so far as domoticz is concerned - it's just updating the 'Last Seen', but it doesn't do that when it's sleeping. I am not keen to start using Fibaro as I don't have z-wave and don't really want ...
- Monday 22 May 2017 11:51
- Forum: LUA
- Topic: Lua PIR problem - Switching off too early
- Replies: 6
- Views: 1893
Re: Lua PIR problem - Switching off too early
Sorry for the delay in responding. I have reached the conclusion that the problem I am having is nothing to do with the scripts, but with the PIRs I have tried to detect continuous movement. The first one, Philips Hue Motion detector, was too 'clever' and seemed to cache the last movement (last ...
- Friday 12 May 2017 18:26
- Forum: LUA
- Topic: Lua PIR problem - Switching off too early
- Replies: 6
- Views: 1893
Lua PIR problem - Switching off too early
Hi I have a PIR PIRCeiling and a script script_device_PIRCeiling.lua that should be updating a user variable TIMERCeiling to the value of a var ceilingTimer each time it switches to 'On'. If the switch Ceiling is not already 'On', it should switch it on. commandArray={} ceilingTimer=6 if ...
- Friday 28 April 2017 20:52
- Forum: Python
- Topic: Python Works at Command Line Not in Domoticz
- Replies: 11
- Views: 5338
Re: Python Works at Command Line Not in Domoticz
I believe I have finally solved the problem - not so that the script runs as it should, but it will do for now:- The script reads a file named registry.kv which supplies a dictionary of device names and addresses. I tried calling the .py from Lua and diverting stdout to a file. There I found that ...
- Friday 28 April 2017 15:31
- Forum: Python
- Topic: Python Works at Command Line Not in Domoticz
- Replies: 11
- Views: 5338
Re: Python Works at Command Line Not in Domoticz
@Lorccan, Did you correctly specify the script in the on and off action fields? It should be something like: script:///home/pi/domoticz/scripts/script.py param1 param2 param3 Notice the three /// if you specify the full path. I've seen others reporting it should be two, but this probably depends on ...
- Friday 28 April 2017 10:15
- Forum: Python
- Topic: Python Works at Command Line Not in Domoticz
- Replies: 11
- Views: 5338
Re: Python Works at Command Line Not in Domoticz
This is it. As you can see it loads the energenie module (which is available at https://github.com/whaleygeek/pyenergenie ) and this drives a dedicated transceiver hat on the RPi. (ENER314-RT) #!/usr/bin/env python3 import time import sys sys.path.append('/home/pi/pyenergenie-master/src') import ...
- Thursday 27 April 2017 21:09
- Forum: Python
- Topic: Python Works at Command Line Not in Domoticz
- Replies: 11
- Views: 5338
Re: Python Works at Command Line Not in Domoticz
I spoke too soon: A short while after I posted my 'solution' - when I was quite happily calling the python scripts directly from the dummy switch on|off action - I started to see the error: Error: Error executing script command (/home/pi/domoticz/scripts/python/ceiling_on.py). returned: 256 I have ...
- Thursday 27 April 2017 15:18
- Forum: Python
- Topic: Python Works at Command Line Not in Domoticz
- Replies: 11
- Views: 5338
Re: Python Works at Command Line Not in Domoticz
Sorry for slow response - I didn't get notification of replies. I am running on an RPi under Raspbian - so, yes *nix - and I did already have the hashbangs in place. I have managed to get it working now. I needed to do a couple of things: Explicitly point to an external module: import sys sys.path ...
- Wednesday 26 April 2017 1:53
- Forum: Python
- Topic: Python Works at Command Line Not in Domoticz
- Replies: 11
- Views: 5338
Python Works at Command Line Not in Domoticz
I have python script that works fine at the command line. However I call it in Domoticz (either ON|OFF on a dummy switch, or calling from a shell script or from a Lua script) it will not work and returns an error 256. I suspect that it's because the script is loading a non-standard module that can't ...
- Friday 03 March 2017 21:56
- Forum: Switches and Scenes
- Topic: Energenie Mi|Home Single Wall Switch MIH0026
- Replies: 0
- Views: 661
Energenie Mi|Home Single Wall Switch MIH0026
Does anyone know how to get this working with Domoticz via Rfxtrx433e please? I have tried putting into pairing mode and adding a manual switch, but the only Type it will respond to is Energenie 5-gang. Once I have it paired I can switch on and off exactly once and it stops responding! I think I ...
- Thursday 23 February 2017 13:54
- Forum: LUA
- Topic: Delay between switches
- Replies: 2
- Views: 1867
Re: Delay between switches
Thanks for the fast reply. I forgot to mention that Switch 2 is relying on an os.execute call as it's talking directly to an amplifier, but I can get around that by creating a dummy switch as you suggest and call the os.execute when it is triggered.
- Thursday 23 February 2017 12:39
- Forum: LUA
- Topic: Delay between switches
- Replies: 2
- Views: 1867
Delay between switches
I am switching on 2 switches via a LUA script. Optimally, I would like to have a delay of ~6 seconds between them. I could do this via a Scene with an On Delay for the second switch, but I only need the delay if Switch 1 was initially OFF and then switched to ON by th script . (I can check the ...