Search found 98 matches

by elmortero
Tuesday 13 June 2017 11:15
Forum: dzVents Lua Framework
Topic: dzVents 2.0 just got integrated into Domoticz (beta v3.8023)
Replies: 41
Views: 2110

Re: dzVents 2.0 just got integrated into Domoticz (beta v3.7968)

Does that mean we have to remove current installed dzvents?
by elmortero
Monday 27 February 2017 13:11
Forum: Other questions and discussions
Topic: Where/how are tariffs defined
Replies: 7
Views: 373

Re: Where/how are tariffs defined

in webconsole:
Setup -> Settings -> Meters/Counters
There you can set the price per unit.
I don't know where to change the hours when to use T1 and T2
by elmortero
Sunday 05 February 2017 13:23
Forum: dzVents Lua Framework
Topic: Help wanted with cleaning up script
Replies: 0
Views: 213

Help wanted with cleaning up script

Hi all, As I am not very experienced in scripting, I get my scripts working working most of the time but they are not very clean. Anybody willing to help me cleanup/simplify this script? It gets the "counterToday" from several powermeters and reports the cost, with currently updating only ...
by elmortero
Sunday 29 January 2017 16:32
Forum: Other questions and discussions
Topic: Turn screen Android tablet off when sleep/not home
Replies: 74
Views: 17354

Re: Turn screen Android tablet off when sleep/not home

Another aproach would be activating adb over wifi in the tablet and send ADB commands. For example "adb shell input keyevent 26" emulates pressing the power button on your tablet, so it toggles the screen On/off

Verstuurd vanaf mijn SM-G903F met Tapatalk
by elmortero
Wednesday 25 January 2017 1:25
Forum: dzVents Lua Framework
Topic: dzVents only updating 1 switch/light
Replies: 3
Views: 354

Re: dzVents only updating 1 switch/light

And if your remove for both the .for_min(2) ? Does the second one work then?
Duration does not work, that is correct. But you can still add an extra command for both, switchOff().after_min(2) to switch them back off
by elmortero
Sunday 22 January 2017 4:29
Forum: dzVents Lua Framework
Topic: Check last seen?
Replies: 7
Views: 638

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: 319

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: 21
Views: 2485

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: 21
Views: 2485

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 1636 times
by elmortero
Friday 20 January 2017 11:39
Forum: General Discussion
Topic: Timer Plan Edit
Replies: 21
Views: 2485

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: 319

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: 21
Views: 2485

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: 605

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: 21
Views: 2485

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: 21
Views: 2485

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: 21
Views: 2485

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: 378

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: 554

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: 554

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: 498

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 = ...

Go to advanced search