Search found 62 matches
- Thursday 23 August 2018 17:07
- Forum: Other questions and discussions
- Topic: Best practices for Domoticz logfile?
- Replies: 55
- Views: 25606
Re: Best practices for Domoticz logfile?
Just sharing my working logrotate conf for domoticz (the key settings here being su and copytruncate ):
/your_path/to/domoticz.log {
#replace the above path with the path to your domoticz logfile
su (your_domoticz_logfile_user) (your_domoticz_logfile_group)
#replace the above user and group ...
- Friday 10 August 2018 8:35
- Forum: dzVents
- Topic: dzVents - Possible to use a variable for a timed event
- Replies: 21
- Views: 6898
Re: dzVents - Possible to use a variable for a timed event
@waaren: Thx for setting this up. Highly appreciated!
Is it possible to do this:
dz.variables(timeVar).time.hour, dz.variables(timeVar).time.minutes
As far as I understand from the documentation, its a string (even though its a date var)
yes this works. I tested this with uservars type ...
- Thursday 09 August 2018 17:01
- Forum: dzVents
- Topic: dzVents - Possible to use a variable for a timed event
- Replies: 21
- Views: 6898
Re: dzVents - Possible to use a variable for a timed event
@waaren: Thx for setting this up. Highly appreciated!
Is it possible to do this:
dz.variables(timeVar).time.hour, dz.variables(timeVar).time.minutes
As far as I understand from the documentation, its a string (even though its a date var)
What I can't figure out is why you use:
on = { variables ...
Is it possible to do this:
dz.variables(timeVar).time.hour, dz.variables(timeVar).time.minutes
As far as I understand from the documentation, its a string (even though its a date var)
What I can't figure out is why you use:
on = { variables ...
- Monday 06 August 2018 16:34
- Forum: dzVents
- Topic: Rain prediction - weather underground
- Replies: 43
- Views: 11936
Re: Rain prediction - weather underground
@elmortero: thanks, that helps. Script is working like a charm, it can use minor updates for version 2.4.X of dzVents
. Will test and submit my latest version here as well.
- Monday 06 August 2018 16:26
- Forum: dzVents
- Topic: dzVents - Possible to use a variable for a timed event
- Replies: 21
- Views: 6898
Re: dzVents - Possible to use a variable for a timed event
@waaren: but unfortunately the var does not change that often (its more a setting)
- Sunday 05 August 2018 9:09
- Forum: dzVents
- Topic: Rain prediction - weather underground
- Replies: 43
- Views: 11936
Re: Rain prediction - weather underground
Hi all, you can not get a new api key anymore for WU. Also the API description seems not visible anymore.Anyone has a link to the API description that works? Or maybee an ofline copy?
- Sunday 05 August 2018 9:00
- Forum: dzVents
- Topic: dzVents - Possible to use a variable for a timed event
- Replies: 21
- Views: 6898
Re: dzVents - Possible to use a variable for a timed event
Hi,
That is not exactly what i was lookling for. I want the time set in the domoticz variable to be the trigger. So 7:30 in the variable should be the trigger to kick off the script. For now I have a 15 minute time trigger and check in the script if the domo variable time is the same as the system ...
That is not exactly what i was lookling for. I want the time set in the domoticz variable to be the trigger. So 7:30 in the variable should be the trigger to kick off the script. For now I have a 15 minute time trigger and check in the script if the domo variable time is the same as the system ...
- Tuesday 31 July 2018 13:06
- Forum: dzVents
- Topic: dzVents - Possible to use a variable for a timed event
- Replies: 21
- Views: 6898
dzVents - Possible to use a variable for a timed event
Hi All,
As I'm using dzVents for all my Lua scripts now, i stumbled into a thought, but not sure how to do this or even if it is possible.
I created a script controling my blinds. It lowers the blinds at a fixed time in the morning and raises them in the evening. Both at a fixed time coded in the ...
As I'm using dzVents for all my Lua scripts now, i stumbled into a thought, but not sure how to do this or even if it is possible.
I created a script controling my blinds. It lowers the blinds at a fixed time in the morning and raises them in the evening. Both at a fixed time coded in the ...
- Friday 20 July 2018 15:55
- Forum: dzVents
- Topic: can I do forEach on a table in global_data? [closed]
- Replies: 2
- Views: 814
Re: can I do forEach on a table in global_data? [closed]
Thx @dannybloe, was expecting that.
- Monday 25 June 2018 16:11
- Forum: dzVents
- Topic: can I do forEach on a table in global_data? [closed]
- Replies: 2
- Views: 814
can I do forEach on a table in global_data? [closed]
Hi all,
I have a table in global_data that looks like this:
harmony = {
poweroff = {
['name']='PowerOff',
['índex']=10,
['lightscene']='video'
},
television = {
['name']='Televisie',
['índex']=20,
['lightscene']='video'
}
}
it is part of the helpers
I can call it with:
domoticz.log ...
I have a table in global_data that looks like this:
harmony = {
poweroff = {
['name']='PowerOff',
['índex']=10,
['lightscene']='video'
},
television = {
['name']='Televisie',
['índex']=20,
['lightscene']='video'
}
}
it is part of the helpers
I can call it with:
domoticz.log ...
- Wednesday 20 June 2018 22:31
- Forum: Suggestions
- Topic: Request for the use of friendly names in addition to device names
- Replies: 5
- Views: 1543
Re: Request for the use of friendly names in addition to device names
in dzvents you can do this by defining this at the top of the execute section: local scriptname = domoticz.devices("dashboardname")
Was overthinking this again. Using local vars is not very helpfull. If you have coded device names like PirLivingroom and PirHalway, you want to use filters or ...
- Monday 18 June 2018 14:17
- Forum: Suggestions
- Topic: Request for the use of friendly names in addition to device names
- Replies: 5
- Views: 1543
Re: Request for the use of friendly names in addition to device names
in dzvents you can do this by defining this at the top of the execute section: local scriptname = domoticz.devices("dashboardname")
Good suggestion, thinking out loud this might me something to define as global variables is dzVents for the time beeing, however there is more than dzVents when ...
- Monday 18 June 2018 12:36
- Forum: Suggestions
- Topic: Request for the use of friendly names in addition to device names
- Replies: 5
- Views: 1543
Request for the use of friendly names in addition to device names
Hi All,
In other platforms I see the use of a "device name" and a "friendly name". The device name can be something like: "VirtualSwitchFoo", where the friendly name can be "Foo switch".
This would help using more complex names as the device name for use in scripts, while the dashboard stays ...
In other platforms I see the use of a "device name" and a "friendly name". The device name can be something like: "VirtualSwitchFoo", where the friendly name can be "Foo switch".
This would help using more complex names as the device name for use in scripts, while the dashboard stays ...
- Thursday 14 June 2018 12:45
- Forum: Switches and Scenes
- Topic: Updating text through MQTT [solved]
- Replies: 9
- Views: 3542
Re: Updating text through MQTT [solved]
@D'rMorris sometimes life is simple and an error easily overlooked. domoticz/in instead of Domoticz/in was thé golden tip!
Thx!!
Ralph
Very welcome, glad you got it sorted out! Since the other flow was working, do you have multiple MQTT configutations defined? I have only 1 domoticz/in ...
- Wednesday 13 June 2018 22:27
- Forum: Switches and Scenes
- Topic: Updating text through MQTT [solved]
- Replies: 9
- Views: 3542
Re: Updating text through MQTT
@D'rMorris sometimes life is simple and an error easily overlooked. domoticz/in instead of Domoticz/in was thé golden tip!
Thx!!
Ralph
Thx!!
Ralph
- Wednesday 13 June 2018 20:52
- Forum: Switches and Scenes
- Topic: Updating text through MQTT [solved]
- Replies: 9
- Views: 3542
Re: Updating text through MQTT
Thx @waaren and @D'rMorris for the anwers,
however it does not seem to work. I'm also using NodeRed. It creates:
{"command":"udevice","idx":229,"svalue":"unknown"}
However when pushed to Domoticz/in, nothing happens.
I dubble checked the idx twice.
For reference, this:
{"command":"switchlight ...
however it does not seem to work. I'm also using NodeRed. It creates:
{"command":"udevice","idx":229,"svalue":"unknown"}
However when pushed to Domoticz/in, nothing happens.
I dubble checked the idx twice.
For reference, this:
{"command":"switchlight ...
- Wednesday 13 June 2018 8:49
- Forum: Switches and Scenes
- Topic: Updating text through MQTT [solved]
- Replies: 9
- Views: 3542
Re: Updating text through MQTT
...
What is the json string I need to create and push through MQTT to update a text dummy text sensor with a new text?
from this wiki page
http://domoticzIP:domoticzPORT//json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=TEXT
IDX = id of your device (This number can be found in the ...
- Tuesday 12 June 2018 22:46
- Forum: Switches and Scenes
- Topic: Updating text through MQTT [solved]
- Replies: 9
- Views: 3542
Updating text through MQTT [solved]
Hi all,
Probably a simple question, but i’m strugling with it.
What is the json string I need to create and push through MQTT to update a text dummy text sensor with a new text?
Thx
Ralph
Probably a simple question, but i’m strugling with it.
What is the json string I need to create and push through MQTT to update a text dummy text sensor with a new text?
Thx
Ralph
- Saturday 27 January 2018 16:42
- Forum: dzVents
- Topic: [Solved] dzVents trying to use persistant data with concat variable
- Replies: 6
- Views: 1091
Re: [Solvedl] dzVents trying to use persistant data with concat variable
Thx @dannybloe, that was exactly what I was looking for. This works! 
- Saturday 27 January 2018 9:18
- Forum: dzVents
- Topic: [Solved] dzVents trying to use persistant data with concat variable
- Replies: 6
- Views: 1091
Re: dzVents trying to use persistant data with concat variable
I haven't had coffee yet, so l'm at risk here. As far as I can see it is. Let me explane my thinking.
prevWifiSwitch takes the values of oldPresence (=prevPresence). It is concatenated with the value of a part of a virtual Switch that is in assetName These are values like Ralph, Anneke. So in the ...
prevWifiSwitch takes the values of oldPresence (=prevPresence). It is concatenated with the value of a part of a virtual Switch that is in assetName These are values like Ralph, Anneke. So in the ...