Search found 53 matches

by gerard76
Tuesday 09 October 2018 20:15
Forum: LUA
Topic: Improve 433Mhz reliability
Replies: 33
Views: 8506

Re: Improve 433Mhz reliability

Translated to dzVents for fun and succinctness. Also removes the need to create domoticz user variables. return { on = { devices = { 'A1', 'A2', 'TV' } }, data = { 'A1', 'A2', 'TV' }, execute = function(domoticz, device) if domoticz.data[device.name] ~= device.state then domoticz.data[device.name ...
by gerard76
Friday 15 September 2017 13:44
Forum: Z-Wave
Topic: Aeontec Home Energy Meter Gen5 100A reporting problems
Replies: 11
Views: 2303

Re: Aeontec Home Energy Meter Gen5 100A reporting problems

ozwcp schermschiet
ozwcp schermschiet
Screen Shot 2017-09-15 at 12.46.19.png (68.89 KiB) Viewed 2167 times
by gerard76
Friday 15 September 2017 13:39
Forum: Z-Wave
Topic: Aeontec Home Energy Meter Gen5 100A reporting problems
Replies: 11
Views: 2303

Aeontec Home Energy Meter Gen5 100A reporting problems

I recently bought an Aeotec energy meter gen 5 60A, but that did not fit over the cable of my solar panels I wanted to measure, so I exchanged it for the 100A version which has a bigger clamp. Adding to Domoticz went fine, but I cannot get for the life of it to spew the right numbers. It reports ...
by gerard76
Monday 22 May 2017 6:53
Forum: LUA
Topic: How to detect who/what activated a LUA script
Replies: 6
Views: 1752

Re: How to detect who/what activated a LUA script

Look at the manual_override bit at the end. If the program switches the fan on it stores this in the 'fan_program' variable. In subsequent runs I check to see if the fan state is the same as what the program told it to do. If not, it was switched manually. require('scripts/lua/time') require ...
by gerard76
Monday 01 May 2017 6:11
Forum: Android
Topic: Domoticz app 2.0
Replies: 2380
Views: 617726

Re: Domoticz app 2.0

@EdKo66 Seems like your phone does not permit the app to use location information. I only know about IOS, but do you have a security setting somewhere (dis)allowing programs to access location information?
by gerard76
Friday 28 April 2017 6:27
Forum: iOS
Topic: homebridge-edomoticz Plugin
Replies: 1715
Views: 415165

Re: homebridge-edomoticz Plugin

allthough I am able to use homebridge with my iphone(6) and my Ipad(4) but My girlfriends(Yes, she want to use it too) Iphone(7) is not able to see the homebridge devices. I also tried installing Eve, but no luck. is there any chance this is a known error or someone has any idea? Access is shared ...
by gerard76
Friday 21 April 2017 7:38
Forum: LUA
Topic: How to detect who/what activated a LUA script
Replies: 6
Views: 1752

Re: How to detect who/what activated a LUA script

You can create an extra (dummy) switch and call that dummy switch with the timer. Have that dummy switch switch the original switch. Now you know the timer flipped the switch and not the user because the user flipped the switch directly (without going through the dummy switch). If it's to detect ...
by gerard76
Wednesday 19 April 2017 16:04
Forum: RFLink Transceiver
Topic: Cresta TX-320 or equivalent
Replies: 17
Views: 7037

Re: Cresta TX-320 or equivalent

If they send at the same time take out the battery for a few seconds to change the timing.
by gerard76
Wednesday 19 April 2017 16:01
Forum: Switches and Scenes
Topic: How can I tell if I have RFX433 device at Home(newbee ?)
Replies: 6
Views: 1788

Re: How can I tell if I have RFX433 device at Home(newbee ?)

Rfxcom works great for me. My colleague got RFlink and it works fine as well. RFlink is cheaper by lots.
by gerard76
Monday 17 April 2017 8:25
Forum: LUA
Topic: Check if devices are still functioning
Replies: 3
Views: 1646

Re: Check if devices are still functioning

Took a while, but I found http://localhost:8080/json.htm?type=openzwavenodes&idx=2 where idx is the HardwareID from your z-wave transceiver found with http://localhost:8080/json.htm?type=devices&rid=113 with rid being the idx of the device you want zwave info over. The LastUpdate returned with the ...
by gerard76
Saturday 15 April 2017 6:39
Forum: dzVents
Topic: Function naming
Replies: 1
Views: 761

Function naming

What's with the mixed function naming? Camelcase and underscoring?

Code: Select all

light.switchOn().within_min()
by gerard76
Friday 14 April 2017 10:31
Forum: LUA
Topic: Check if devices are still functioning
Replies: 3
Views: 1646

Re: Check if devices are still functioning

Thank you for your reply, but like I said, lastupdate will not work because a door/window sensor lastupdate will be the last time the state changed. I have sensors on windows that rarely open, so lastupdate will be days ago even though the device is working fine. The API also does not report the ...
by gerard76
Friday 14 April 2017 9:04
Forum: LUA
Topic: Check if devices are still functioning
Replies: 3
Views: 1646

Check if devices are still functioning

I am trying to find a way to determine if devices are still functioning. Like a window/door sensor only has a lastupdate which is the last time the door/window opened. But some windows are hardly ever opened. Z-Wave does know the 'last seen' but I have no idea how to get this in Lua or from the son ...
by gerard76
Friday 14 April 2017 8:56
Forum: LUA
Topic: LUA inìdentifer onTimer event
Replies: 3
Views: 981

Re: LUA inìdentifer onTimer event

You could create a dummy device and have that dummy device be switched by the timer and then script to turn on the real device and then you also know the timer was triggered. The manual action would be on the device itself.
by gerard76
Thursday 13 April 2017 10:14
Forum: Others
Topic: Nest Protect
Replies: 9
Views: 5952

Re: Nest Protect

It gives an On/Off signal as smoke alarm.

I turn on all the lights for example so people can find their way out.
by gerard76
Tuesday 11 April 2017 15:22
Forum: PHP and all others
Topic: Presence detection
Replies: 8
Views: 6519

Re: Presence detection

Stable even
by gerard76
Tuesday 11 April 2017 11:35
Forum: Others
Topic: Braun Oral-B toothbrush
Replies: 6
Views: 2211

Re: Braun Oral-B toothbrush

I am saying something can be made to get the data through the Oral B API which would be easier than the bluetooth option.
by gerard76
Monday 10 April 2017 21:10
Forum: iOS
Topic: Wich IOS app are you using and is similar to Domoticz (android)
Replies: 8
Views: 8025

Re: Wich IOS app are you using and is similar to Domoticz (android)

I tried Pilot but did not like it. Dunno why.

I combined Domotics with homebridge (with the homebridge-edomoticz package) and can use Siri and home app and the shortcuts when you swipe up.

I sometimes use the Domoticz web interface, but not everything works.
by gerard76
Sunday 09 April 2017 9:02
Forum: LUA
Topic: Check doors and send command
Replies: 7
Views: 1580

Re: Check doors and send command

commandArray = {} doors = {'Voordeur','Achterdeur'} max_open = 300 -- in seconds function timedifference(timestamp) y, m, d, H, M, S = timestamp:match("(%d+)-(%d+)-(%d+) (%d+):(%d+):(%d+)") return os.difftime(os.time(), os.time{year=y, month=m, day=d, hour=H, min=M, sec=S}) end for i, door in pairs ...
by gerard76
Sunday 09 April 2017 8:47
Forum: iOS
Topic: homebridge-edomoticz Plugin
Replies: 1715
Views: 415165

Re: homebridge-edomoticz Plugin

I'm having trouble to get the plugin active on boot. I have updated the systemd domoticz.service to boot homebridge after domoticz, but domoticz does not have enough time to get up and running. Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.493 Active notification Subsystems: email (1/12) Apr ...