Search found 19 matches

by Deluka
Sunday 22 April 2018 21:33
Forum: LUA
Topic: CEC client on remote PI
Replies: 1
Views: 724

Re: CEC client on remote PI

The follwing format solved the problem

Code: Select all

os.execute(  'ssh [email protected] "echo standby 0| cec-client -s -d 1 "' )
by Deluka
Sunday 22 April 2018 21:06
Forum: Android
Topic: Geofence for Domoticz
Replies: 381
Views: 112447

Closed by peer

When i set things up using http the app works but when i try to use https i get a error connect closed by peer.
Checking the cert using chrome on a win machine it tells me its secure.
The dz log is not reporting faild logins.
Anyone any idea what is going wrong
by Deluka
Saturday 21 April 2018 7:26
Forum: LUA
Topic: CEC client on remote PI
Replies: 1
Views: 724

CEC client on remote PI

I am trying to use CEC-client to controle my TV and STB When i run this command in a shell ssh [email protected] 'echo on 3 | cec-client -s -d 1' the STB turns on But when i try this in lua os.execute( 'ssh [email protected] echo “on 3” | cec-client -s -d 1') nothing happens. Im pretty sure its a for ...
by Deluka
Sunday 18 March 2018 19:15
Forum: dzVents
Topic: attempt to call local 'filter' (a table value)
Replies: 5
Views: 814

Re: attempt to call local 'filter' (a table value)

Oke found out i'm using version 2.2 and the wiki was for 2.4
Can i just upgrade DZvents to 2.4 in a stable version ?
by Deluka
Sunday 18 March 2018 19:08
Forum: dzVents
Topic: attempt to call local 'filter' (a table value)
Replies: 5
Views: 814

Re: attempt to call local 'filter' (a table value)

Oke but this comes direct of the DZvents wiki local livingLights = { 'window', 'couch', 33, -- kitchen light id } local lights = domoticz.devices().filter(livingLights) lights.forEach(function(light) -- do something light.switchOn() end) and also gives the same error If its on the wiki sure its in ...
by Deluka
Sunday 18 March 2018 18:54
Forum: dzVents
Topic: attempt to call local 'filter' (a table value)
Replies: 5
Views: 814

attempt to call local 'filter' (a table value)

I have this small script return { on = { timer = { "every minute" }}, execute = function(domoticz, switch) local x = {59,56,47,4,1} local MyDevices = domoticz.devices().filter(x) local CurrentLux = domoticz.devices("Lux Living").lux local Geo = domoticz.devices('Geofence') if (Geo.state == 'Off ...
by Deluka
Saturday 10 March 2018 19:30
Forum: dzVents
Topic: DsVents global var lastupdate
Replies: 9
Views: 1171

Re: DsVents global var lastupdate

still getting a error 2018-03-10 18:41:28.354 dzVents: Error (2.4.1): error loading module 'lux' from file '/home/pi/domoticz/scripts/dzVents/scripts/lux.lua': /home/pi/domoticz/scripts/dzVents/scripts/lux.lua:16: unexpected symbol near '.' When I alter this line in local luxRecord.date = luxState ...
by Deluka
Saturday 10 March 2018 7:45
Forum: dzVents
Topic: DsVents global var lastupdate
Replies: 9
Views: 1171

Re: DsVents global var lastupdate

Thx for your help but getting a error
attempt to index local 'luxRecord' (a nil value)
by Deluka
Friday 09 March 2018 19:11
Forum: dzVents
Topic: DsVents global var lastupdate
Replies: 9
Views: 1171

Re: DsVents global var lastupdate

Its for a lux meter. If the lux level is below or above a set level for a set time turn on or off the lights Made this in plain lua and want to port this to dzvents There the var is only updated once and only if the current lux is above or under the set level. If the var is not changed for a set ...
by Deluka
Friday 09 March 2018 8:27
Forum: dzVents
Topic: DsVents global var lastupdate
Replies: 9
Views: 1171

Re: DsVents global var lastupdate

Thx and what About script level vars
by Deluka
Friday 09 March 2018 7:14
Forum: dzVents
Topic: DsVents global var lastupdate
Replies: 9
Views: 1171

DsVents global var lastupdate

Is it possible to get the lastupdate time of a global var
Form what i can tell reading the wiki it could be possible but i can’t get it working
by Deluka
Thursday 08 March 2018 5:41
Forum: Python
Topic: DomoticzEvents functions
Replies: 3
Views: 1064

Re: DomoticzEvents functions

Oke thx but this link is for dzvents
by Deluka
Wednesday 07 March 2018 22:51
Forum: Suggestions
Topic: Support of Let's Encrypt
Replies: 10
Views: 12315

Re: Support of Let's Encrypt

Oke thx that solved my problem
by Deluka
Wednesday 07 March 2018 22:46
Forum: Python
Topic: DomoticzEvents functions
Replies: 3
Views: 1064

DomoticzEvents functions

Im new to phyton
Where or how can i see the built in functions of domoticzevents
Al the methods i found on ohter sites dont seem to work
by Deluka
Saturday 24 February 2018 18:08
Forum: Suggestions
Topic: Support of Let's Encrypt
Replies: 10
Views: 12315

Re: Support of Let's Encrypt

I'm trying this but getting the following error

Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA
by Deluka
Saturday 10 December 2016 9:27
Forum: Others
Topic: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Replies: 325
Views: 107452

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Would it be possible to use more then 1 Mi Flora
by Deluka
Sunday 13 November 2016 12:14
Forum: Others
Topic: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor
Replies: 325
Views: 107452

Re: Xiaomi Mi Flora [Temp/Light/Moisture] BLE Sensor

Really would love to see this in domoticz
I'm still testing a Xiaomi Mi Flora but next to a Parrot the values are almost the same
No dead plants yet :D
by Deluka
Sunday 03 April 2016 15:30
Forum: Kodi (XBMC)
Topic: Domoticz service addon for Kodi
Replies: 4
Views: 8010

Re: Domoticz service addon for Kodi

Hello Trying this script but getting a error inside KODI to check the log This is what i get there ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: Error Contents: global name 'user ...
by Deluka
Thursday 03 March 2016 18:47
Forum: Other questions and discussions
Topic: How to RGBW switch ?
Replies: 2
Views: 1170

How to RGBW switch ?

Hey there
In the latest release you could be able to at a dummy RGBW switch
Been looking around but can't find it
Can someone point me in the right direction

Thx