Search found 331 matches

by Bikey
Monday 29 March 2021 18:03
Forum: Others
Topic: Can the MQTT Client Gateway post "retained" messages?
Replies: 21
Views: 2337

Re: Can the MQTT Client Gateway post "retained" messages?

I'm using Domoticz on a Raspberry Pi to read the status of GPIO-ports that are connected to my alarm system and be able to switch it on/of.

Domoticz acts as a hub to forward this information to HomeAssistant that does logic with it (to which I am migrating to) ;-)
by Bikey
Monday 29 March 2021 16:51
Forum: Others
Topic: Can the MQTT Client Gateway post "retained" messages?
Replies: 21
Views: 2337

Re: Can the MQTT Client Gateway post "retained" messages?

Yes, this is exactly what the use is for retained messages. From the link I have referred to: Retained messages help newly-subscribed clients get a status update immediately after they subscribe to a topic. The retained message eliminates the wait for the publishing clients to send the next update ...
by Bikey
Monday 29 March 2021 15:07
Forum: Others
Topic: Can the MQTT Client Gateway post "retained" messages?
Replies: 21
Views: 2337

Can the MQTT Client Gateway post "retained" messages?

Hi, I'm using the MQTT Client gateway to have Domoticz publish the status of sensors and switches on MQTT so that other software can use this. This works fine, except that if the other tool restarts, it is not until and update is send from Domoticz about a sensor before it is informed of the last ...
by Bikey
Wednesday 17 February 2021 16:49
Forum: Design, usability and languages
Topic: Republish via MQTT "Domoticz/OUT" to "Domoticz/OUT/idx
Replies: 2
Views: 2074

Re: Republish via MQTT "Domoticz/OUT" to "Domoticz/OUT/idx

Sure, just read the information with the MQTT Client Gateway at the "Publish Topic" setting.

If you set this at "Index" it will publish on Domotiz/out/idx
by Bikey
Monday 03 August 2020 10:38
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Proxmox
Replies: 15
Views: 9627

Re: Domoticz on Proxmox

Can you see the device as /dev/ttyUSB0 or /dev/ttyACM0? I'm definitely no Unix expert, but I think that most of these devices are placeholders. In my case the "real" devices are different from the other devices because all devices are belonging tot the "tty" group, but the actual devices are ...
by Bikey
Sunday 02 August 2020 18:18
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Proxmox
Replies: 15
Views: 9627

Re: Domoticz on Proxmox

My point was that there shouldn’t be a need to use mknod. If you plug in a USB stick a device is created, there is noneed to do that manually. If you can’t list the device, not even by it’s /dev/tty* then something else is wrong.
by Bikey
Sunday 02 August 2020 16:06
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Proxmox
Replies: 15
Views: 9627

Re: Domoticz on Proxmox

Doing the ls -lh /dev/ttyUSB-ZStick-5G ls: cannot access '/dev/ttyUSB-ZStick-5G': No such file or directory SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="ttyUSB-ZStick-5G" Hi, you should not have to use mknod: if the device is recognised its there if not it does not ...
by Bikey
Saturday 01 August 2020 15:34
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Proxmox
Replies: 15
Views: 9627

Re: Domoticz on Proxmox

Hi, I can't see anything strange, look Ok from here. You can check why you can't see a running Domoticz, by checking the Domoticz-log. You can check the log by going into the Portainer web interface (default at http://docker-host:9000/#/containers) and then in the "Containers" menu, select the ...
by Bikey
Friday 31 July 2020 12:14
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Proxmox
Replies: 15
Views: 9627

Re: Domoticz on Proxmox

hi, i recognise your struggling, so here is a small guide: On the ProxMox host: I first used the Domoticz guide create " Persistent USB Devices" . It is optional, but it makes sure that the ID of your USB does not change after a restart or when plugging in other USB-devices as well. After that you ...
by Bikey
Tuesday 28 July 2020 11:41
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Domoticz on Proxmox
Replies: 15
Views: 9627

Re: Domoticz on Proxmox

Hi, In order not to have all this installation hustle, I would advice you to look at using Docker. You can install Docker inside a LXC and get all the benefits of managing the machine with ProxMox, but without having to actually install Domoticz or other "Docker-ised" apps. So the only thing you ...
by Bikey
Tuesday 28 July 2020 10:50
Forum: Others
Topic: Will domoticz run well on a Intel NUC DN2820FYK 2.16Ghz 4GB 128GB SSD
Replies: 8
Views: 1498

Re: Will domoticz run well on a Intel NUC DN2820FYK 2.16Ghz 4GB 128GB SSD

Thanks, So if I can get the one above for 95€ or this one for 115€ Intel NUC Kit D34010WYK Intel Core i3 4010U 1.7GHz, 4GB Ram, 120GB M.2 SSD Which would be the best option? Old processors made some sense to me, now days it doesn't. As said, both will have plenty CPU-power for Domoticz only. Both ar ...
by Bikey
Tuesday 28 July 2020 10:04
Forum: Others
Topic: Will domoticz run well on a Intel NUC DN2820FYK 2.16Ghz 4GB 128GB SSD
Replies: 8
Views: 1498

Re: Will domoticz run well on a Intel NUC DN2820FYK 2.16Ghz 4GB 128GB SSD

It is better to actually partition/format and use the whole SSD, because now you are continuously using the 8 Gb for all writes, while it would be better to spread this over the whole disks. This would decrease the amount of writes per surface 30 times!
by Bikey
Monday 15 June 2020 9:29
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

Found a small bug, the notification returned an empty message today. So line 194: dz.notify(longGarbageName(overallEarliestType) .. ' will be collected today') needs to be changed to: dz.notify(longGarbageName(garbage[sortedKeys[1]][2]) .. ' will be collected today') Or this, if you would like to ...
by Bikey
Sunday 14 June 2020 23:46
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

I will already change the regex to include ophaaldagenNext as well, like this: json = "{"..triggerObject.data:match('(\"ophaaldagen\":{.*),\"mededelingen\":').."}" This will probably work for you but is not needed for addresses where the initial conversion already worked. There is also a risk that ...
by Bikey
Sunday 14 June 2020 21:26
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

I don't think that this line will work at the end of the year: json = "{"..triggerObject.data:match('(\"ophaaldagen\":{.*),\"ophaaldagenNext\":').."}" .. because towards the end of December the "ophaaldagenNext" table will be filled with the collection dates for January and the "ophaaldagen" tabel ...
by Bikey
Sunday 14 June 2020 12:48
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

Thanks waaren! I couldn't stand that I was not able to get this working nicely so did some more testing and found that the crippled Json is in a part of the result that is not relevant. So I used the regex as posted earlier to only select the proper "ophaaldagen" Json object from the result. Now ...
by Bikey
Saturday 13 June 2020 14:57
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

Hi Jos, Thanks for the tip, I actually got the idea from your script ;-) My version is a try to improve that even a bit further by not only filtering everything out of the reply after the "ophaaldagen" object, but also everything before. If I test this regex in an online regex editor with the ...
by Bikey
Saturday 13 June 2020 13:07
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

I tried to reduce the result set by adding these lines which should reduce the result to only the "ophaaldagen" object, but that seem not to do anything, still getting the error that there are too many lines. triggerObject.data = triggerObject.data:match('.*(\"ophaaldagen\".*),.*\"ophaaldagenNext ...
by Bikey
Friday 12 June 2020 20:57
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

Don’t you get this error?

Code: Select all

Error: dzVents: Error: (3.0.9) ...1016: Lua script execution exceeds maximum number of lines
by Bikey
Friday 12 June 2020 18:11
Forum: Examples & Solutions
Topic: dzVents get garbage collection dates (various) [SOLVED]
Replies: 123
Views: 27277

Re: dzVents get garbage collection dates (various) [SOLVED]

That script actually works! Well sort off, it complains with this error, although the devices are updated: Error: dzVents: Error: (3.0.9) collectGarbage: Error parsing json to LUA table: /opt/domoticz/scripts/dzVents/../lua/JSON.lua:1234: /opt/domoticz/scripts/dzVents/../lua/JSON.lua:1016: Lua ...