Search found 486 matches
- Sunday 22 December 2024 23:04
- Forum: dzVents
- Topic: posting data
- Replies: 26
- Views: 566
Re: posting data
What exactly is your end goal?
- Saturday 21 December 2024 23:16
- Forum: dzVents
- Topic: Electricity, Dynamic and fixed tariffs comparision
- Replies: 0
- Views: 85
Electricity, Dynamic and fixed tariffs comparision
In the Netherlands one can choose between 1 - dynamic tariff (changes every hour) 2 - Fixed tariff with low and normal tariffs 3 - Fixed tariff with flat rate 4 - Variable tariffs - changing every 3 months or every half year To be able to make a comparision between 1) and 2) I have written this ...
- Saturday 21 December 2024 15:29
- Forum: Bugs and Problems
- Topic: Webinterface is only showing dark blue screen
- Replies: 6
- Views: 168
Re: Webinterface is only showing dark blue screen
Is there somewhere documented how to migrate from 32 bit to 64 bit platform? I used 2024.4 (January 2024) To do so: Delete domoticz from your new sd card, better and set up a new 64bit Raspberry Pi installation . I recommend using the light version, so choose Raspberrypi OS other and then the 64bit ...
- Thursday 19 December 2024 23:46
- Forum: dzVents
- Topic: Handy functions for dzVents
- Replies: 3
- Views: 197
Re: Handy functions for dzVents
spaces() is a function to help you align data when writing to a Text Sensor -- Helper functions local function spaces(count) return string.rep(" ", count) end local function round(num, decimals) local mult = 10^(decimals or 0) return math.floor(num * mult + 0.5) / mult end Here is an example ...
- Wednesday 18 December 2024 22:02
- Forum: dzVents
- Topic: posting data
- Replies: 26
- Views: 566
Re: posting data
Test with predefined data postData = { idx = '25', status = 'On', level = '10' } The script is supposed to create a file and add the POST data to that file. The file is created, however the array is empty. local yourFile = "/home/pi/nameOfFile.csv" local file = io.open(yourFile, "a") file:write ...
- Wednesday 18 December 2024 17:53
- Forum: dzVents
- Topic: mirror switches unnecessarily complicated :D
- Replies: 9
- Views: 284
Re: mirror switches unnecessarily complicated :D
Like this? local sec = 1 -- second to delay the toggle return { on = { devices = { 'Centrala_ON/OFF', 'Centrala_ON/OFF_(rLe1)', -- Pair 1 'Pompa_ON/OFF', 'Pompa_On/OFF_(rLe2)', -- Pair 2 'helpOnOff' -- Helper switch } }, logging = { level = domoticz.LOG_INFO, marker = "========= Sync Multiple Dummy ...
- Wednesday 18 December 2024 17:32
- Forum: Dashticz
- Topic: Colored volume bar
- Replies: 6
- Views: 254
Re: Colored volume bar
And this? return { on = { devices = { 'Volume_Sensor' } -- Replace with your actual volume sensor device name }, execute = function(domoticz, device) local volume = device.level local volumeBar = "" if volume <= 20 then volumeBar = "<font color='red'>█</font>" elseif volume <= 40 then volumeBar = ...
- Wednesday 18 December 2024 17:26
- Forum: dzVents
- Topic: mirror switches unnecessarily complicated :D
- Replies: 9
- Views: 284
Re: mirror switches unnecessarily complicated :D
I asked CoPilot this question: i've made myself a little script that will make 2 switches mirror each other, no matter which one i push and in what state it is, the other one will mirror. (not like the slave device for a switch). so let say i have a switch that will control some real device. i want ...
- Wednesday 18 December 2024 17:23
- Forum: dzVents
- Topic: posting data
- Replies: 26
- Views: 566
Re: posting data
What about filling in a domain?
What do you see when you open https://domain.tld/script in a browser?
What do you see when you open https://domain.tld/script in a browser?
- Tuesday 17 December 2024 23:19
- Forum: LUA
- Topic: Script examples (Lua)
- Replies: 138
- Views: 154691
Re: Script examples (Lua)
Here's the default script for LUA/Device (click on "+", right most on scripts tab): So great a script! It's a realy simple way to be able to watch what's happening behind the scenes PLUS the data being displayed. I have put in the list of scripts and named it All data display Activate it, wait a ...
- Monday 16 December 2024 22:59
- Forum: Bugs and Problems
- Topic: No Switchs appears on switch panel nor meteo devices on meteo panel
- Replies: 6
- Views: 211
Re: No Switchs appears on switch panel nor meteo devices on meteo panel
It must have been quite a panic situation.
Did you decide to have Domoticz make regular backups now or have you already set that in settings -> system
Did you decide to have Domoticz make regular backups now or have you already set that in settings -> system
- Monday 16 December 2024 17:42
- Forum: Utility
- Topic: Dynamic Price for Energy - How-To ?
- Replies: 13
- Views: 356
Re: Dynamic Price for Energy - How-To ?
If it is only cost calculation you can do it like this: return { on = { devices = { 'Actual Price' }, timer = { 'at 23:59' } }, logging = { level = domoticz.LOG_DEBUG, marker = 'Cost Calculation' }, data = { costT1 = { initial = 0 }, -- daltarief costT2 = { initial = 0 }, -- normaal tarief ...
- Sunday 15 December 2024 2:01
- Forum: Python
- Topic: Python or dzVents
- Replies: 5
- Views: 184
Re: Python or dzVents
Thank you all for your comments.
I will do some python experimenting juist door the fun of doing so but I'll stick to dzVents.
Praise to the people who implemented it.
It's so dead easy to program and to maintain the scripts.
I will do some python experimenting juist door the fun of doing so but I'll stick to dzVents.
Praise to the people who implemented it.
It's so dead easy to program and to maintain the scripts.
- Saturday 14 December 2024 11:39
- Forum: Python
- Topic: Python or dzVents
- Replies: 5
- Views: 184
Python or dzVents
I (read Claude) just adapted a script from dzVents to python and put the python script in ~/domoticz/scripts/python Both are running now and the output of the scripts is written to different files. - is the place for python scripts ~/domoticz/scripts/python? - what gives less stress to the system, a ...
- Saturday 14 December 2024 0:16
- Forum: PHP and all others
- Topic: Get idx from switch
- Replies: 11
- Views: 321
Re: Get idx from switch
PS
If you want to use 'ethic' AI then use claude.ai
If you want to use 'ethic' AI then use claude.ai
- Friday 13 December 2024 22:44
- Forum: Utility
- Topic: Dynamic Price for Energy - How-To ?
- Replies: 13
- Views: 356
Re: Dynamic Price for Energy - How-To ?
I agree with @habahabahaba ; share the code
Or to start with: where do you collect the prices.
If you live in the Netherlands you'd better use the Enever Dutch Electricity/Gas Price Feed plugin.
If not show us the URL you're using.
Or to start with: where do you collect the prices.
If you live in the Netherlands you'd better use the Enever Dutch Electricity/Gas Price Feed plugin.
If not show us the URL you're using.
- Friday 13 December 2024 22:29
- Forum: PHP and all others
- Topic: Get idx from switch
- Replies: 11
- Views: 321
Re: Get idx from switch
This is easy, have a look here first. So using your code from the dzVents wiki: return { on = { devices = { 'switch1', 'switch2', 'switch3', 'YourSwitch' -- In my domoticz there is a switch which I always use for testing things } }, execute = function(domoticz, switch) domoticz.log('Triggered item ...
- Friday 13 December 2024 21:02
- Forum: Python
- Topic: Python Plugin: Volvo EV
- Replies: 154
- Views: 18386
Re: Python Plugin: Volvo EV
On tweakers I saw this: "data": [ { "command": "LOCK_REDUCED_GUARD", "href": "/v2/vehicles/vin/commands/lock-reduced-guard" }, { "command": "LOCK", "href": "/v2/vehicles/vin/commands/lock" }, { "command": "UNLOCK", "href": "/v2/vehicles/vin/commands/unlock" }, { "command": "HONK", "href": "/v2 ...
- Monday 09 December 2024 16:01
- Forum: Design, usability and languages
- Topic: Incomplete text shown on dashboard
- Replies: 7
- Views: 1063
Re: Incomplete text shown on dashboard
In many cases you can edit the name of the sensor and it will still function.
- Sunday 08 December 2024 15:29
- Forum: dzVents
- Topic: How can I retrieve Costs T1 and Costs T2
- Replies: 10
- Views: 259
Re: How can I retrieve Costs T1 and Costs T2
Of course I can.habahabahaba wrote: ↑Sunday 08 December 2024 12:53 So why dont you want to take them from json answer ?
I'm just very curious.