Search found 93 matches

by elmortero
Sunday 22 January 2017 4:29
Forum: dzVents Lua Framework
Topic: Check last seen?
Replies: 6
Views: 211

Re: Check last seen?

I think what are looking for is in the dzvents examples.
https://github.com/dannybloe/dzVents/tree/master/dzVents/examples
Look for check dead devices.lua
That script checks for device that have not been updated for x minutes
by elmortero
Sunday 22 January 2017 2:51
Forum: Scripts [cleaning in progress]
Topic: Heating DZvents Multi Zone
Replies: 3
Views: 113

Re: Heating DZvents Multi Zone

I think avgTemp is nil because the persitent variable 'temperatureReadings' is not being populated.
Can you check if the exact name of your temperature sensero is 'Downstairs Temperature'? Keep in mind that Lua is case sensitive..
by elmortero
Friday 20 January 2017 12:24
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Re: Timer Plan Edit

You are right, it only works with timerplan 0 and 1
by elmortero
Friday 20 January 2017 12:07
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Re: Timer Plan Edit

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=2

Results
in:

tplan.JPG
tplan.JPG (11.09 KiB) Viewed 195 times
by elmortero
Friday 20 January 2017 11:39
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Re: Timer Plan Edit

No, all works as it should.
by elmortero
Thursday 19 January 2017 10:31
Forum: Scripts [cleaning in progress]
Topic: Heating DZvents Multi Zone
Replies: 3
Views: 113

Re: Heating DZvents Multi Zone

Do you get any errors in the log?
That sure would help us help you :-)
by elmortero
Thursday 19 January 2017 10:24
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Re: Timer Plan Edit

you can change the timer plan with

Code: Select all

http://127.0.0.1:8080/json.htm?type=command&param=setactivetimerplan&ActiveTimerPlan=0

Where ActiveTimerPlan=0 sets the idx of the plan, 0 being default
by elmortero
Wednesday 18 January 2017 21:48
Forum: LUA
Topic: Control PiMusicbox with lua
Replies: 2
Views: 413

Re: Control PiMusicbox with lua

Hi gijs69, Until I saw your post I only used local playlists, thanks to your script I now have a mix of playlist and streaming radio. Thanks a lot! I just finished a script that gets the currently playing track and updates it to a text sensor to display it in Domoticz. Do you by chance know if there...
by elmortero
Wednesday 18 January 2017 18:00
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Re: Timer Plan Edit

In Setup -> settings -> other you can set the timer plan to use. By default it is set to.. Default. You arrange your timers the way you want them. When you then change the plan to Holiday (which is the second option you have when you didn't add another timer plan). If you then look at the timers of ...
by elmortero
Wednesday 18 January 2017 11:47
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Re: Timer Plan Edit

This way you can have different timers for different situations. Before it was either Default or Holiday. Now you can create others. I have now: Default , for regular Days/weeks, Holiday , for when we are away from home and Vacation for when we are not working but not away from home (long weekend et...
by elmortero
Wednesday 18 January 2017 0:03
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 18
Views: 724

Timer Plan Edit

Thank you Gizmocuz for this option.
No idea when you added it but I discovered it today.

Very happy with it !!
:)
by elmortero
Sunday 15 January 2017 20:43
Forum: Scripts [cleaning in progress]
Topic: Alarmpi - Speaking Alarm Clock
Replies: 2
Views: 149

Re: Alarmpi - Speaking Alarm Clock

Try moving the folder alarmpi to the scripts folder /home/pi/scripts and for the on action

Code: Select all

script://alarmpi/sound_the_alarm.py
by elmortero
Wednesday 11 January 2017 19:24
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 196

Re: problems with Persistent data

In that case I wouldn't know. This is a working script I use that is similar to what you want, maybe you find something that can help you return { active = true, on = { ['timer'] = 'every 30 minutes' }, data = { prevtbath = {initial=15} }, execute = function(domoticz) local tempd = domoticz.devices[...
by elmortero
Wednesday 11 January 2017 18:37
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 196

Re: problems with Persistent data

I don't know if it is compulsary, but I always give an initial value, even if It is nil.
That is how is described on the dzvents github page

Verstuurd vanaf mijn SM-G903F met Tapatalk
by elmortero
Tuesday 10 January 2017 18:31
Forum: Scripts [cleaning in progress]
Topic: Assistance required getting energy script to work, split string
Replies: 11
Views: 221

Re: Assistance required getting energy script to work, split string

I have used that script long time ago and remember struggling quite a lot with it :-) In the end it worked, but don't really remember quite how. Short after that I moved to dzvents which has a lot of built-in functions for these kind of things. your script could be something like: return { active = ...
by elmortero
Tuesday 10 January 2017 17:49
Forum: Scripts [cleaning in progress]
Topic: Assistance required getting energy script to work, split string
Replies: 11
Views: 221

Re: Assistance required getting energy script to work, split string

try

Code: Select all

watt, kwh = string.match(otherdevices_svalues['Energy Monitor'], "(%d+%.*%d*);(%d+%.*%d*)")

instead of

Code: Select all

watt, kwh = energyreading:match("([^;]+);([^;]+)")
by elmortero
Tuesday 10 January 2017 13:28
Forum: Scripts [cleaning in progress]
Topic: Blockly examples
Replies: 417
Views: 122890

Re: Blockly examples

My logics in blockly were: if on certain time and its Monday till Friday and groups is off then do group on nothing happended :lol: If for some reason events skip a beat and miss 11:37 it will not trigger, to build in a safety you could put it between timeX and timeY In your case it will also only ...
by elmortero
Sunday 08 January 2017 20:24
Forum: Bugs and Problems
Topic: Problem updating node, NorthQ 92021 Power Reader
Replies: 2
Views: 72

Re: Problem updating node, NorthQ 92021 Power Reader

Same here.

Please tell me what logs and test are needed and I will post them here

Go to advanced search