Search found 612 matches
- Wednesday 05 February 2025 10:11
- Forum: LUA
- Topic: Is there a select statement?
- Replies: 11
- Views: 1629
Re: Is there a select statement?
The C-like switch/case is not present in Lua (was same for very long with Python as well), usual advice to avoid heavy if/elseif usage is to rework the logic using what is the basis of this language: Tables... http://lua-users.org/wiki/SwitchStatement That's one among C oldies I often miss using Lua ...
- Thursday 30 January 2025 9:08
- Forum: Third party and supplementary tools
- Topic: best way to input number 1..24 with Dashticz?
- Replies: 10
- Views: 869
Re: best way to input number 1..24 with Dashticz?
Why not use a setpoint device as I proposed here earlier? Can confirm this may be a good option. Tried this but did not changed my selector for now because widget does not allow to call some scripts directly with the setpoint value, as you can do in selector levels (setpoint changes needs to be ...
- Wednesday 29 January 2025 14:45
- Forum: Bugs and Problems
- Topic: DzVents Script reports sometimes a wrong value
- Replies: 19
- Views: 280
Re: DzVents Script reports sometimes a wrong value
Did not saw any indication that updates were in sync exactly every 5mn. So I believed reads were asynchronous vs updates so that's just based on a sliding 1mn (60s) window that may fall on a 6s data read time over 5x1mn slices (HW update time). My guess was reading exactly when, unfortunately, an ...
- Wednesday 29 January 2025 9:17
- Forum: Bugs and Problems
- Topic: DzVents Script reports sometimes a wrong value
- Replies: 19
- Views: 280
Re: DzVents Script reports sometimes a wrong value
In about 3% of all script runs, wrong values (...) My PV batterie reports every 5 minutes the SOC to a domoticz sensor: return { on = { devices = {'Batterie_SOC'}, timer = { 'every 1 minutes' } }, (...) For example: Domoticz sensor "Batterie_SOC" is now 12% But it reports 16%: 2025-01-26 07:46:06 ...
- Monday 27 January 2025 15:43
- Forum: Python
- Topic: Another "requests" not found
- Replies: 7
- Views: 147
Re: Another "requests" not found
Thnx! I guess I have to dig a little deeper in LUA or dzVents. (...) I've tried curl to update the dimmer, but I need to import 'subprocess' for that and guess what ;-) Python is good when it's rich modules choice really makes things easier, but the drawback is maintenance over time (modules ...
- Monday 27 January 2025 11:03
- Forum: Zigbee
- Topic: Error: Z4D: _send_and_retry - Unexpected Exception - rawaps_read_attribute_req 00:17:88:01:08:3c:63:e3/0x3402 0x104 0x8
- Replies: 9
- Views: 476
Re: Error: Z4D: _send_and_retry - Unexpected Exception - rawaps_read_attribute_req 00:17:88:01:08:3c:63:e3/0x3402 0x104
Makes sense, this log was at 08:00:04.117, so when hourly backup was done... If this only happens with this exact coordinator, this may not be plugin issue: If that's a coordinator side timeout that happens when there is, unfortunately, some serial-usb exchanges on-going at hourly boundaries, must ...
- Monday 27 January 2025 10:42
- Forum: Third party and supplementary tools
- Topic: best way to input number 1..24 with Dashticz?
- Replies: 10
- Views: 869
- Monday 27 January 2025 9:14
- Forum: Third party and supplementary tools
- Topic: best way to input number 1..24 with Dashticz?
- Replies: 10
- Views: 869
Re: best way to input number 1..24 with Dashticz?
Would be useful, even out of dashticz. A slider/rotating knob widget with tunable range/step/unit would be really useful. For now I use virtual selector switches than call some scripts with selector level setup parameter given to script but that's not so handy to setup. My use case is disabling some ...
- Monday 27 January 2025 9:06
- Forum: Python
- Topic: Another "requests" not found
- Replies: 7
- Views: 147
Re: Another "requests" not found
Hello, You can use idx as well as device names in Lua/dzVent. And on same localhost, no need for request/get actions: All done using tables, no external dependencies. Lua is really easy to learn compared to Python, dzVent maybe also but my brain is really reluctant with the triggers etc... and I ...
- Monday 27 January 2025 8:45
- Forum: Zigbee
- Topic: Error: Z4D: _send_and_retry - Unexpected Exception - rawaps_read_attribute_req 00:17:88:01:08:3c:63:e3/0x3402 0x104 0x8
- Replies: 9
- Views: 476
Re: Error: Z4D: _send_and_retry - Unexpected Exception - rawaps_read_attribute_req 00:17:88:01:08:3c:63:e3/0x3402 0x104
Hello, Sorry, did not noticed your previous answer/question: IMO, cable is not the culprit there & IMO quite good in ext diameter (so, I believe, internal cables) with ferrite. For 2nd question: No more issue since the single I had reported hereupper & Yes, Domoticz backup is enabled (not sure this ...
- Thursday 23 January 2025 12:57
- Forum: Bugs and Problems
- Topic: New install with errors.
- Replies: 6
- Views: 116
Re: New install with errors.
On the picture you showed there are no errors. It's not so obvious as that's screen capture (not needed & cumbersome, as that's 100% text) but there is indeed some web server errors logged (host not found + address being "::"). So if there is some network related issues this may affect MQTT etc...
- Monday 20 January 2025 12:16
- Forum: General Discussion
- Topic: What's next for Domoticz??
- Replies: 19
- Views: 583
Re: What's next for Domoticz??
with dzVents you can write some really powerful automation scripts. In dzVent or pure Lua, I sticked to 2nd option for 2 reasons: -My brain looks to be reluctant to the way dzVent handles triggers. -Ability to test code snippets out of Domoticz embedded Lua: Just install Lua interpreter for the ...
- Monday 20 January 2025 12:02
- Forum: dzVents
- Topic: how to restore my 'generated_scripts'?
- Replies: 7
- Views: 189
Re: how to restore my 'generated_scripts'?
I have about 50 scripts, will take me an hour. To avoid such issue in the future, you may also save your scripts as regular files in the right ~/domoticz/scripts subdir, using the right name convention for the script type (time, device...)? Some also experienced (never myself, Lua looks quite ...
- Sunday 19 January 2025 19:14
- Forum: General Discussion
- Topic: What's next for Domoticz??
- Replies: 19
- Views: 583
Re: What's next for Domoticz??
Wiki must be used by everyone to add useful information! This used to be possible, but last time I tried this was no more (not even possible to update some how2 I wrote). Probably there was some abuse that lead to some policy change? Anyway must agree that scripting features in Domoticz are really ...
- Sunday 12 January 2025 9:41
- Forum: Other questions and discussions
- Topic: External access/ChangeIP issues...
- Replies: 4
- Views: 323
Re: External access/ChangeIP issues...
Hello, Already have a 1h period cron job that checks my IPs & sends a IPv4+IPv6 link with the address. But that's only as a backup as certificate for HTTPS is linked to a domain. Easy to quick check from a PC but not really from mobile.* So really prefer to have a domain even if IP based links ...
- Friday 10 January 2025 8:57
- Forum: Zigbee
- Topic: Error: Z4D: _send_and_retry - Unexpected Exception - rawaps_read_attribute_req 00:17:88:01:08:3c:63:e3/0x3402 0x104 0x8
- Replies: 9
- Views: 476
Re: Error: Z4D: _send_and_retry - Unexpected Exception - rawaps_read_attribute_req 00:17:88:01:08:3c:63:e3/0x3402 0x104
Hello, I'm getting similar issue since a few hours, from 3 devices: 0xa2d7 0x3d46 0x1d9c : All 3 being same "TS011F-plug" devices (so all 3 in use!) working correctly since months... Versions: Plugin: 7.1.018 [5.353] Firmware: Ezsp - 6.10.3.0 build 297 Last logs grep'ed since this morning at 8h00 ...
- Thursday 09 January 2025 17:24
- Forum: Zigbee
- Topic: Zigbee device: no reliable lastupdate
- Replies: 11
- Views: 289
Re: Zigbee device: no reliable lastupdate
And i don’t think that moving sensors is very common with zigbee. Right. Moving this kind of meshed devices breaks their network topology. Issue quite clear for those buying remotes: I have one in zwave that only worked in the aera of inclusion. IMO this would be same in zigbee. =>never buy remotes ...
- Thursday 09 January 2025 13:23
- Forum: Bugs and Problems
- Topic: refresh webinterface home network/internet
- Replies: 4
- Views: 188
Re: refresh webinterface home network/internet
This is not an addressing issue that would prevent any page load, not only updates pushed back by some long living connection using web-socket. Here you can initiate connections & get required pages in return but you don't get later updates initiated in the opposite way: They must be blocked by some ...
- Wednesday 08 January 2025 14:30
- Forum: Bugs and Problems
- Topic: refresh webinterface home network/internet
- Replies: 4
- Views: 188
Re: refresh webinterface home network/internet
That's not consistent behavior depending on the external network you're connected to: No issue for me on mobile networks or from a laptop connected from another home network outside of mine for instance, if a sensor reports I see state change updated without having to refresh page... Not the same at ...
- Monday 06 January 2025 13:35
- Forum: dzVents
- Topic: Average current for valve
- Replies: 10
- Views: 238
Re: Average current for valve
For avarage calculation over x measurements see for example topic https://forum.domoticz.com/viewtopic.php?t=38305 An arithmetic average will not work for such device that usually report (a few %) changes over time with varying samples timings. This needs some discrete integration (summing 'current ...