Search found 86 matches
- Sunday 19 February 2023 19:12
- Forum: dzVents
- Topic: Let script pause for few minutes
- Replies: 3
- Views: 375
Re: Let script pause for few minutes
Never tried this, but could you perhaps use a virtual switch and use light.switchOn().forMin(5) to turn it on for a few minutes and use that virtual switch as trigger device so you 'catch' it again after 5 minutes when it goes off, and then do the calculations you want...?
- Saturday 18 February 2023 13:21
- Forum: dzVents
- Topic: Why does "local domoticz = require("global_data")" not always work?
- Replies: 0
- Views: 433
Why does "local domoticz = require("global_data")" not always work?
My scripts use a lot of info I put in global_data. That file looks a bit like this: return { -- global persistent data data = { OWMForecast = {}, kelvinBuiten = {}, hueScenes = {}, sceneWoonkamerStatus = { initial = 'Auto' } }, helpers = { -- SYSTEEM idxNachtstand = 153, -- KAMERS -- woonkamer ...
- Sunday 02 October 2022 6:49
- Forum: MQTT Auto Discovery
- Topic: [SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
- Replies: 8
- Views: 2280
Re: [SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
Depends on how you installed it, I believe. I don’t know much about Docker, I found out that this works for me, if I change
to
but don’t ask me why 
Code: Select all
sudo docker-compose up -d
Code: Select all
sudo docker compose up -d
- Saturday 01 October 2022 11:58
- Forum: MQTT Auto Discovery
- Topic: [SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
- Replies: 8
- Views: 2280
Re: [SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
It was released about an hour later. The problem is solved, I only had to delete all the new devices.
https://github.com/zwave-js/zwave-js-ui ... elease.yml
https://github.com/zwave-js/zwave-js-ui ... elease.yml
- Thursday 29 September 2022 18:37
- Forum: MQTT Auto Discovery
- Topic: [SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
- Replies: 8
- Views: 2280
Re: BE VERY CAREFUL when updating zwavejs2mqtt !!!!
Yep, I missed that. And he fixed it indeed very quickly. I'm waiting for the docker image to get to 8.0.2 and then I'll update again.
- Thursday 29 September 2022 17:36
- Forum: MQTT Auto Discovery
- Topic: [SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
- Replies: 8
- Views: 2280
[SOLVED] BE VERY CAREFUL when updating zwavejs2mqtt !!!!
I updated my zwavejs2mqtt version 7.0.1 to the latest version 8.0.1. Big surprise, it is no longer called zwavejs2mqtt but zwave-js-ui. I did not know this. Zwavejs2mqtt used it own name as part of the unique identifier. Zwave-js-ui does this too. So EVERY DEVICE is rediscovered by Domoticz, because ...
- Thursday 22 September 2022 9:57
- Forum: dzVents
- Topic: Calculating washing machine costs; lost in numbers...
- Replies: 6
- Views: 512
Re: Calculating washing machine costs; lost in numbers...
Those are the numbers Domoticz reads from my TKB TZ-69E smart energy plug in . domoticz.devices(idxVerbruikWasmachine).WhTotal Oh hold on... WhTotal. Not kWh... Kilo... Kilo = 1000... The fog starts to clear up ;) So / 1000 will give me kWh from Wh! MachineUsed = (domoticz.data.MachineEndkWh ...
- Wednesday 21 September 2022 21:26
- Forum: dzVents
- Topic: Calculating washing machine costs; lost in numbers...
- Replies: 6
- Views: 512
Calculating washing machine costs; lost in numbers...
I used the script here in the forum to read values from my device. it needed some tweaking to make it work for me, but it works now. Almost. I just can't figure out the last step, the actual costs. After all is done, I have these numbers after a washing cycle: Start kWh = 39599 End kWh = 39975 Used ...
- Thursday 15 September 2022 16:03
- Forum: Z-Wave
- Topic: zwavejs2mqtt
- Replies: 446
- Views: 60931
Re: zwavejs2mqtt
[*] I also have Fibaro smoke detectors these are recognized and added by MQTT discovery but there are only two devices added for each detector. - Air Temperature - battery_islow But in OZW I had several more, like heat switch, housing switch, fire alarm, etc. Especially the last one is quite ...
- Sunday 14 August 2022 14:53
- Forum: Switches and Scenes
- Topic: How to create button providing multiple options
- Replies: 3
- Views: 886
Re: How to create button providing multiple options
After discovering that my ceiling fan with TUYA can't be added to Domoticz, I accidentally stumbled upon this post. Tried my remote and I'll be damned! My 433 picks it up
Thanks for posting!

Thanks for posting!
- Wednesday 10 August 2022 10:14
- Forum: Python
- Topic: Python Plugin: TUYA
- Replies: 507
- Views: 104941
Re: Python Plugin: TUYA
Hi there, I recently bought my first Tuya-driven product and I am trying to integrate it in Domoticz. It doesnt use the Tuya, Smart or Jinvoo app though, but they have their own app ('create'). I tried my login credentials with every setting anyway, but no luck. 2022-08-09 15:39:39.353 Error: TUYA ...
- Tuesday 05 July 2022 16:47
- Forum: Other questions and discussions
- Topic: How do I put my virtual weather devices in the weather tab?
- Replies: 6
- Views: 1051
Re: How do I put my virtual weather devices in the weather tab?
Sorry, I somehow missed the question... So with a bit of a delay: yes, the script changes the names of the virtual devices every hour. Something like this: forecast_temp_6h_deviceName = 'Temperatuur om ' .. os.date("%H", OWMMain.hourly[6].dt) .. ':' .. os.date("%M", OWMMain.hourly[6].dt) .. ' uur ...
- Thursday 10 March 2022 16:23
- Forum: Zigbee
- Topic: [Solved] How to activate HUE dynamic scenes?
- Replies: 3
- Views: 2186
Re: [Solved] How to activate HUE dynamic scenes?
I was hoping to present a nice clean script with fabulous options, but it takes me much longer than expected and there is so much to do and the weather is nice and ... Anyway, the core is this (this is just a test script, you will have to change it to make it work for you): return { on = { devices ...
- Saturday 05 March 2022 19:25
- Forum: dzVents
- Topic: Local, global, variable, chunks... Where is my table?
- Replies: 4
- Views: 631
Re: Local, global, variable, chunks... Where is my table?
Doh.
Changing hueScenesDz_hueId into a script level persistent variable seemed to work. I should have realized this sooner. Anyway... Onward!
Changing hueScenesDz_hueId into a script level persistent variable seemed to work. I should have realized this sooner. Anyway... Onward!
- Saturday 05 March 2022 14:45
- Forum: dzVents
- Topic: Local, global, variable, chunks... Where is my table?
- Replies: 4
- Views: 631
Re: Local, global, variable, chunks... Where is my table? Now with script included...
I kind of dreaded this moment, because my skills suck, but my ambitions are huge. I am the Dr Frankenstein of scripting; I cut parts from things I think I can use and stitch stuff together with my basic knowledge, google and a lot of trial and error. So behold my monster: --[[ Purpose of the script ...
- Friday 04 March 2022 19:05
- Forum: dzVents
- Topic: Local, global, variable, chunks... Where is my table?
- Replies: 4
- Views: 631
Local, global, variable, chunks... Where is my table?
Right at the beginning of my script, I declare my table: execute = function( domoticz , triggerItem ) local myTable_devId = {} I have a function that adds values to the table, like: hueScenesDz_hueId[i] = {} myTable_devId[i].action = myUrl myTable_devId[i].name = theName Other functions want to use ...
- Saturday 26 February 2022 13:23
- Forum: dzVents
- Topic: Can I use (all) devices from a hardware id as trigger?
- Replies: 2
- Views: 410
Re: Can I use (all) devices from a hardware id as trigger?
TO get that to work, you would need to add all the devices in that hardware to a group and use the group as a trigger. Mm, but I would not know which device in the group caused the group-trigger, would I? Anyway, I 'solved' it by add a prefix to the devices and using a wildcard in the device ...
- Friday 25 February 2022 17:08
- Forum: dzVents
- Topic: I still don't understand tables...
- Replies: 2
- Views: 637
Re: I still don't understand tables...
Thanks,
It helped me out a bit. Your examples & trial and error
Not defining the arrays was one of the problems.
It helped me out a bit. Your examples & trial and error

- Friday 25 February 2022 17:06
- Forum: dzVents
- Topic: Can I use (all) devices from a hardware id as trigger?
- Replies: 2
- Views: 410
Can I use (all) devices from a hardware id as trigger?
I've created a separate hardwareId for a dynamic collection of virtual switches. My script creates the switches when it needs to. But it also has to act when the switch is triggered. I use myDeviceTriggers = domoticz.hardwareInfo(myHardwareId).idx and I get a table with all the right idx's. But ...
- Saturday 19 February 2022 18:29
- Forum: dzVents
- Topic: I still don't understand tables...
- Replies: 2
- Views: 637
I still don't understand tables...
I've spent hours reading at lua.org, lua-users.org and numerous other sites, looked at a lot of examples here at the forum, but somehow I still don't understand tables. Perhaps it has to do with the fact that I learned myself programming some 40+ years ago when i was a kid. BASIC and Pascal and ...