Search found 267 matches

by ben53252642
Sunday 14 January 2018 7:20
Forum: LUA
Topic: HUE Power Usage & Energy Script
Replies: 9
Views: 4834

Re: HUE Power Usage & Energy Script

Trixwood, slightly un-related question... are you hearing a high pitch buzzing noise coming from your Lightstrips?

I've just added one to my wardrobe and the noise is driving me crazy.
by ben53252642
Sunday 14 January 2018 0:32
Forum: Bugs and Problems
Topic: CommandArray['OpenURL'] ='...AFTER 30'
Replies: 7
Views: 197

Re: CommandArray['OpenURL'] ='...AFTER 30'

Thank you for this information, I've just applied it to a number of my os.execute scripts and its made my system a bit more responsive. :D
by ben53252642
Saturday 13 January 2018 19:32
Forum: Bugs and Problems
Topic: CommandArray['OpenURL'] ='...AFTER 30'
Replies: 7
Views: 197

Re: CommandArray['OpenURL'] ='...AFTER 30'

jvdz wrote:
Saturday 13 January 2018 19:21
ben53252642 wrote:
Saturday 13 January 2018 18:45
Then call it from Lua:

eg:

Code: Select all

if abc then
os.execute ('/folder/script.sh')
end
I would ensure the script returns control right away by:

Code: Select all

os.execute ('sh /folder/script.sh &')

Jos
Can you please explain what you mean by return control right away?
by ben53252642
Saturday 13 January 2018 18:45
Forum: Bugs and Problems
Topic: CommandArray['OpenURL'] ='...AFTER 30'
Replies: 7
Views: 197

Re: CommandArray['OpenURL'] ='...AFTER 30'

I'd do this with a bash script:

eg:

Code: Select all

#!/bin/bash
sleep 30
curl -s "http://URL"
Then call it from Lua:

eg:

Code: Select all

if abc then
os.execute ('/folder/script.sh')
end
by ben53252642
Saturday 13 January 2018 13:30
Forum: Bugs and Problems
Topic: Several crashes per day.
Replies: 9
Views: 244

Re: Several crashes per day.

There seem to be quite a lot of stability problems lately:

https://github.com/domoticz/domoticz/issues/2060

I'm seeing both Pushover notifications and the Netatmo plugin cause Domoticz to crash.

Somewhere something has changed.
by ben53252642
Saturday 13 January 2018 13:02
Forum: Bash / PowerShell / Batch etc.
Topic: Guide - How to use Pushover notifications with Domoticz via bash
Replies: 0
Views: 58

Guide - How to use Pushover notifications with Domoticz via bash

As the current implementation of the Pushover notification option in Domoticz is causing Domoticz to crash for me (Version: 3.8805) I have created an alternate method for using Pushover notifications with Domoticz (Linux only): 1) Create a bash script somewhere on your system containing: #!/bin/bash...
by ben53252642
Saturday 13 January 2018 9:38
Forum: Bugs and Problems
Topic: Netamo problem
Replies: 1
Views: 88

Re: Netamo problem

I'm seeing the exact same problem, I've had to leave the Netatmo plugin disabled to be able to use Domoticz.
by ben53252642
Friday 12 January 2018 18:24
Forum: General Discussion
Topic: Fibaro flood sensor in devices
Replies: 4
Views: 963

Re: Fibaro flood sensor in devices

Same problem, just secure added a FGFS-101.

I'm only seeing these sensors (missing the temperature sensor):

kitchenfloodsensor.PNG
kitchenfloodsensor.PNG (101.05 KiB) Viewed 33 times
It shows up fine in the OpenZWave control panel:

floodopenzwave.PNG
floodopenzwave.PNG (39.05 KiB) Viewed 33 times
I've already tried waiting 6 hours and re-including it, how long did it take to show up?
by ben53252642
Thursday 11 January 2018 16:32
Forum: Compatibility
Topic: How to start a *.sh file at bootup?
Replies: 12
Views: 149

Re: How to start a *.sh file at bootup?

An alternative method is to make an init.d script that runs your script on startup: nano /etc/init.d/NAMEOFSCRIPT #!/bin/sh ### BEGIN INIT INFO # Provides: startscripts # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 5 # Default-Stop: # Description: Starts the script ### EN...
by ben53252642
Wednesday 10 January 2018 17:34
Forum: LUA
Topic: Bulk device last update script
Replies: 5
Views: 137

Re: Bulk device last update script

Egregius wrote:
Wednesday 10 January 2018 17:27
Or use pass2php and have less code :lol:

Code: Select all

if($status=='On'){
	if(past('bedroom')>past('hallway'){
		//do something
	}
}
Wow, that is a very simple way to do it!

We all have our favourite programming languages. 8-)
by ben53252642
Wednesday 10 January 2018 17:24
Forum: LUA
Topic: Bulk device last update script
Replies: 5
Views: 137

Re: Bulk device last update script

DzVents while excellent is almost like a different programming language... there can be benefits starting out with it but for those of us using Lua / familiar with Lua scripting the above could be very useful.
by ben53252642
Wednesday 10 January 2018 15:45
Forum: LUA
Topic: Bulk device last update script
Replies: 5
Views: 137

Bulk device last update script

This Lua script gets the last update times for large numbers of devices and makes the time available as a variable name: eg: MainBedroomLastUpdate Then it's possible to do simple math as part of if statements, example: if (devicechanged["Main Bathroom"] == 'On' and MainBedroomLastUpdate > 5) then co...
by ben53252642
Wednesday 10 January 2018 12:51
Forum: LUA
Topic: Script for faster, more efficient bulk control of devices (eg everything off)
Replies: 7
Views: 302

Re: Script for faster, more efficient bulk control of devices (eg everything off)

I've also implemented this in my motion sensor device scripts (More compact version for bulk turning on devices triggered by motion). commandArray = {} --- Living Room and Kitchen + Main Entrance Hallway if (devicechanged["Living Room Motion"] == 'On') then devices = {"Main Entrance Hallway","Living...
by ben53252642
Wednesday 10 January 2018 10:57
Forum: Python
Topic: Smarter Wifi iKettle 2 script for Domoticz
Replies: 58
Views: 5411

Re: Smarter Wifi iKettle 2 script for Domoticz

trixwood, are you finding that often the iKettle will not join the Wifi network and just sit with its own SSID broadcasting requiring a manual restart of the kettle?
by ben53252642
Wednesday 10 January 2018 8:23
Forum: LUA
Topic: Script for faster, more efficient bulk control of devices (eg everything off)
Replies: 7
Views: 302

Re: Script for faster, more efficient bulk control of devices (eg everything off)

mayyam wrote:
Wednesday 10 January 2018 8:08
Great script @ben53252642!
Its working just fine. Thank You Very Much.

But there is one, little error - first two lines are doubled by c&p.
Fixed it, thanks!
by ben53252642
Wednesday 10 January 2018 5:05
Forum: LUA
Topic: Script for faster, more efficient bulk control of devices (eg everything off)
Replies: 7
Views: 302

Script for faster, more efficient bulk control of devices (eg everything off)

This Lua script can dramatically improve performance as an alternative to a scene to bulk control devices. Example, a home has 20 devices of various technologies (z-wave, phillips hue, xiaomi etc...). Half the devices are turned on and the other half are not. Let's say you want to turn off all the d...
by ben53252642
Sunday 07 January 2018 22:31
Forum: Other questions and discussions
Topic: Securely add a z-wave device
Replies: 4
Views: 161

Re: Securely add a z-wave device

No, you delete the old device on the same screen where you can include / exclude it.
by ben53252642
Sunday 07 January 2018 20:08
Forum: Other questions and discussions
Topic: Securely add a z-wave device
Replies: 4
Views: 161

Re: Securely add a z-wave device

See the end part of my top post here: https://www.domoticz.com/forum/viewtopic.php?f=31&t=21282 You will need to reset the motion sensor device (find the instruction manual) and re-include it so it gets the new key. Also +1 if you want to see the feature I requested (that secure included devices be ...
by ben53252642
Sunday 07 January 2018 10:27
Forum: Suggestions
Topic: Display Z-Wave max kbps device speed in web interface
Replies: 2
Views: 152

Re: Display Z-Wave max kbps device speed in web interface

Egregius I'm seeing the same thing RE 40000 (40kbps) for all my devices, I've spent the last two hours trying to figure out if my network is really operating at Z-Wave plus speeds (I know many of my devices support 100kbps). I've logged an issue on the openzwave github page: https://github.com/OpenZ...
by ben53252642
Sunday 07 January 2018 1:55
Forum: Suggestions
Topic: Display Z-Wave max kbps device speed in web interface
Replies: 2
Views: 152

Display Z-Wave max kbps device speed in web interface

It's possible to see the maximum speed for a Z-Wave device (according to openzwave) in: cat domoticzfolder/Config/zwcfg_ZWAVEHOMEID.xml | grep 'max_baud_rate' Example: <Node id="30" name="Main Bedroom Wa" location="" basic="4" generic="15" specific="1" roletype="5" devicetype="6912" nodetype="0" typ...