Search found 466 matches

by ben53252642
Wednesday 17 October 2018 13:11
Forum: Zigbee
Topic: Zigbee2MQTT
Replies: 83
Views: 7534

Re: Zigbee2MQTT

A flow I'm using for the Xiaomi Vibration / Tilt / Fall sensor (in this case to detect if the cats kitty litter is cleaning). [{"id":"530d5d9f.5093b4","type":"mqtt in","z":"f962b96d.7044c8","name":"zigbee2mqtt/out","topic":"zigbee2mqtt/tiltsensorkittylitter","qos":"2","broker":"6e165f21.f7645","x":3...
by ben53252642
Wednesday 17 October 2018 7:40
Forum: Bugs and Problems
Topic: CommandArray['OpenURL'] ='...AFTER 30'
Replies: 9
Views: 776

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

cool... many thanks for this, I was struggling to find a solution Olivier This works in Lua scripts (it's better than having to use a separate bash script or similar): os.execute ('(/bin/sleep 2 && /usr/bin/curl -s "http://URLHERE")&') Change the sleep number (currently set to 2), it's in seconds. ...
by ben53252642
Sunday 14 October 2018 8:16
Forum: Bugs and Problems
Topic: Frozen screen when saving a new Event
Replies: 2
Views: 99

Re: Frozen screen when saving a new Event

1) Do you use an adblocker?

2) Have you tried with a different browser?
by ben53252642
Sunday 14 October 2018 8:05
Forum: Bugs and Problems
Topic: Domoticz Offline one time per day...
Replies: 2
Views: 147

Re: Domoticz Offline one time per day...

To start, sorry for my bad english and my bad linux knowledge. My opinion.. I think you should probably re-install with Raspbian since that's what the majority of people running Domoticz on Raspberry Pi are using... If you don't have much experience it will be beneficial for you to be using the mos...
by ben53252642
Friday 12 October 2018 10:32
Forum: LUA
Topic: convert seconds into day:hour:minute:seconds
Replies: 3
Views: 105

Re: convert seconds into day:hour:minute:seconds

You would have found many answers just by searching the forum... -- Device Last Updates t1 = os.time() devices = { "Living Room Left Blind", "Main Bedroom Entrance Motion", "Hours in Bed", "Main Hallway Motion", "Living Room Motion", "Office Entrance Motion", "Main Bedroom", "Bedroom ZRC90 Curtain B...
by ben53252642
Thursday 11 October 2018 19:30
Forum: Zigbee
Topic: Zigbee2MQTT
Replies: 83
Views: 7534

Re: Zigbee2MQTT

You either need to use Zigbee2MQTT or the Hive plugin If you want to control the device in Domoticz using Zigbee2MQTT this flow should work (import it) [{"id":"bfb978ea.1c29a8","type":"mqtt in","z":"f962b96d.7044c8","name":"","topic":"domoticz/out","qos":"2","broker":"cd51966f.aa7e38","x":330,"y":14...
by ben53252642
Friday 28 September 2018 14:50
Forum: Bash / PowerShell / Batch etc.
Topic: Script to restart Domoticz if it crashes
Replies: 162
Views: 54520

Re: Script to restart Domoticz if it crashes

Sometimes domoticz is not working, www server of domoticz is not working but systemctl status domoticz shows it as working so you can not check by this way... Check doing a curl is a better option but you can not use this domoticzcheck=$(curl --max-time 60 -k -s "https://USERNAME:PASSWORD@192.168.0...
by ben53252642
Wednesday 26 September 2018 17:23
Forum: Show your projects
Topic: Migrating from zWave to KNX
Replies: 12
Views: 557

Re: Migrating from zWave to KNX

emme wrote:
Wednesday 26 September 2018 17:13
you need a 1k€ licensed software :(
For that I could buy 96 Xiaomi Motion Sensors... wow!
by ben53252642
Tuesday 25 September 2018 9:04
Forum: Others
Topic: Opinions on Arduino based cable connection
Replies: 12
Views: 1979

Re: Opinions on Arduino based cable connection

You don't need an arduino for reed switches, it can be done very easily with just a Raspberry Pi.

See: viewtopic.php?f=65&t=24991&p=192239#p192239

I've got a Pi 3 B+ which only monitors a reed switch working very nicely.
by ben53252642
Tuesday 25 September 2018 8:31
Forum: Other questions and discussions
Topic: Updating the status of Domoticz switches without triggering?
Replies: 27
Views: 8468

Re: Updating the status of Domoticz switches without triggering?

Solved my problem using a uservariable in the Lua script, eg: -- Flood Sensor Kitchen if (devicechanged['Flood Sensor Kitchen'] == 'On') then message = "Domoticz#A flood has been detected in the kitchen." commandArray['SendNotification'] = message print(message) commandArray['Variable:floodsensorkit...
by ben53252642
Tuesday 25 September 2018 8:15
Forum: Other questions and discussions
Topic: Updating the status of Domoticz switches without triggering?
Replies: 27
Views: 8468

Re: Updating the status of Domoticz switches without triggering?

Surely someone knows how to do this?

I've need to update a devices battery and rssi WITHOUT actually triggering it on or off via MQTT.
by ben53252642
Monday 24 September 2018 16:12
Forum: Other questions and discussions
Topic: Z-Wave Working horrible on my Domoticz
Replies: 9
Views: 459

Re: Z-Wave Working horrible on my Domoticz

I'm using the exact same Z-Wave controller and have two ZRC-90's working without any problems.

What exactly is going wrong, does it refuse to pair or not work after it's paired?
by ben53252642
Monday 24 September 2018 13:22
Forum: Show your projects
Topic: Migrating from zWave to KNX
Replies: 12
Views: 557

Re: Migrating from zWave to KNX

With ZigBee I had to have some gateways which is a bit of a pain. That used to be the case before Zigbee2MQTT and some other projects, I've recently moved all my Xiaomi and Philip Hue devices onto Zigbee2MQTT (and subsequently removed the Xiaomi and Hue hubs). I think Zigbee2MQTT could become the O...
by ben53252642
Monday 24 September 2018 11:04
Forum: Show your projects
Topic: Migrating from zWave to KNX
Replies: 12
Views: 557

Re: Migrating from zWave to KNX

EdddieN, I've been decommissioning Z-Wave devices in my home and replacing them with Zigbee (mostly Xiaomi, Philip Hue etc..) using Zigbee2MQTT and Node-Red. I can't understand why you would want to go from Zigbee to Z-Wave? What was the reasoning, are you happier with the Z-Wave system? My experien...
by ben53252642
Sunday 23 September 2018 14:21
Forum: Zigbee
Topic: Elelabs ZigBee USB and ConBee USB adapter
Replies: 4
Views: 367

Re: Elelabs ZigBee USB and ConBee USB adapter

Please search the forum before posting....

There is active work on a plugin for Zigbee2MQTT.

viewtopic.php?f=68&t=23607&start=60

Zigbee2MQTT supports a huge range of devices:

https://github.com/Koenkk/zigbee2mqtt/w ... ed-devices
by ben53252642
Sunday 23 September 2018 11:21
Forum: Python
Topic: Script to detect if circuit is open or closed on Raspberry Pi, Magnetic Reed Switch
Replies: 0
Views: 149

Script to detect if circuit is open or closed on Raspberry Pi, Magnetic Reed Switch

Python script to detect if a circuit is open or closed. Eg: connect a wire to GPIO pin 21 and the other end to ground and it will detect it as being closed, remove the wire and it detects as open. Good for using with Magnetic reed switches around the house which are simple open or closed circuits. S...
by ben53252642
Sunday 23 September 2018 6:19
Forum: dzVents
Topic: os.execute.aftersec
Replies: 12
Views: 1234

Re: os.execute.aftersec

Using this in a Lua script to run multiple commands using os.execute, thanks!

Code: Select all

os.execute ('(/bin/sleep 4 && /usr/bin/curl -s "http://192.168.0.5:1880/hueapi?devicename=lightstripmainbathmirror&state=on&brightness=254&r=0&g=0&b=0&colortemp=351&transition=0.5")&')
by ben53252642
Friday 21 September 2018 0:34
Forum: Zigbee
Topic: Zigbee2MQTT
Replies: 83
Views: 7534

Re: Zigbee2MQTT

EddyG, check this out, Worked out how to use a variable for the MQTT topic. A single flow that can control any Hue Lightstrip in the house (includes a HTTP API) so I can control using Lua scripts. Eg: http://noderedip:1880/hueapi?devicename=huetest&state=on&brightness=100&r=50&g=170&b=2&colortemp=0 ...
by ben53252642
Thursday 20 September 2018 21:28
Forum: LUA
Topic: How to set device RGBWW via Lua script?
Replies: 2
Views: 187

How to set device RGBWW via Lua script?

Hey folks,

Does anyone know how to set a RGBWW Domoticz virtual device via Lua script?

Eg: commandArray['LED'] = 'On' & Colortemp= 180 & Brightness = 80

or

Eg: commandArray['LED'] = 'On' & R=180 B=80 G=221 & Brightness = 80

Thanks
by ben53252642
Thursday 20 September 2018 21:22
Forum: Bugs and Problems
Topic: login page and adding users does not work on port 8080
Replies: 2
Views: 144

Re: login page and adding users does not work on port 8080

Is authentication on the Domoticz settings page set to "Login Page" or "Basic-Auth" Setting it to Basic-Auth might fix the problem, I'd recommend using Basic-Auth anyway since > 95% of scripts you will find that use authentication will be using Basic-Auth. Does that fix it? (unlikely, but it's worth...