Search found 37 matches

by PierreT
Wednesday 17 September 2025 21:15
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Stopping domoticz failes
Replies: 11
Views: 3807

Re: Stopping domoticz failes

Fairly normal on my system. I run with the OpenRC init system though, which doesn't resort to a SIGKILL if the service doesn't end within the timeout period. Usually when I execute the stop command a second time it states that the process no longer exists. I have had occasions though where it would ...
by PierreT
Thursday 24 April 2025 21:58
Forum: Other questions and discussions
Topic: (Solved) External website protection
Replies: 4
Views: 3369

Re: External website protection

I suggest you take a look at wireguard.
by PierreT
Saturday 30 November 2024 11:41
Forum: Switches and Scenes
Topic: Keep push button pressed in Domoticz
Replies: 12
Views: 2019

Re: Keep push button pressed in Domoticz


Don't try the loop, it'll end up into an endless loop.
Walters'solution domoticz.devices('YourSwitch').switchOn.forSec(3) is the one.


I actually think your approach is the correct one, though it requires additional thinking. The challenge here is not to switch on and then switch off after some ...
by PierreT
Friday 06 September 2024 17:00
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 1558

Re: How is value for kWh for specific month calculated?



...
As a side note, the month (and year) total normally doesn't match that latter value anyway because there is a time gap between day[n].lastvalue and day[n+1].firstvalue. On a yearly base this will cause you to lose a full hour of usage data on older smart meters.

There is an open issue ...
by PierreT
Thursday 05 September 2024 12:13
Forum: Other questions and discussions
Topic: How is value for kWh for specific month calculated?
Replies: 14
Views: 1558

Re: How is value for kWh for specific month calculated?


It is normally calculated from the difference in the total counter value.


Hmmm... Haven't had any crashes for quite a while, but when I did I noticed that the month reports are created by summing all the day totals from (multi)meter_calendar. i.e. if you have days missing because Domoticz was ...
by PierreT
Friday 23 August 2024 22:48
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy


Fail2ban limit attempts even if some built-in https server side configuration (as sshd_config MaxStartups) would be more reactive with heavy burst attempts from many IPs than can now reach your home thanks to fiber capacity & make a log based monitoring solution alone much less effective than in ...
by PierreT
Saturday 17 August 2024 0:42
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy



Yes most people are stupid and blindly copy what other stupid people before them wrote.
You can have a strong opinion, but I think this goes off topic and with a tone I do not appreciate.


The tone, the tone... Does it probit you to learn or does it make you believe stronger in your version ...
by PierreT
Friday 16 August 2024 23:42
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy


Just a guess, but I thing you are lucky that you do not have to feed all persons that run scripts from one machine and not via VPN through other countries, but from their own country.

Yeah well, you can't possibly tell which machines are corrupted and how they connect to the internet and ...
by PierreT
Friday 16 August 2024 20:31
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy


1. At my websites I saw frequently connections to e.g. https://domain.com/?author=1 from one IP address, directly followed with https://domain.com/?author=2 from another IP address and so on. Must be the same guy :-). So apparently it is possible to spoof IP addresses, or work from multiple ...
by PierreT
Sunday 11 August 2024 23:02
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy


The other option I thought of is to simply add geoIP also to the virtual machine.

My favourite filter. Stops 99% of all the non-intended traffic right at the doorstep, except of course if you happen to live in China. Do make sure to follow the monthly updates to the database and don't forget to ...
by PierreT
Friday 09 August 2024 21:25
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy

I suggest you take a look at ipsets then. Rather than change the iptables rules themselves on the fly this filter allows you to only alter the IP lookup table that is referenced by a static rule in the chain. To be fair, I would never allow dynamic updates to be applied to any of the main chains in ...
by PierreT
Friday 09 August 2024 17:40
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy



Obviously can't work because it is not the remote machine making the TCP connection to the Domoticz server but your HTTP proxy machine.

Yes, I can understand that. Banning and blocking takes place based on the domoticz log, which does see the remote address. Blocking does not really happen ...
by PierreT
Friday 09 August 2024 13:04
Forum: Other questions and discussions
Topic: Fail2Ban for Domoticz fails behind reverse proxy
Replies: 36
Views: 4217

Re: Fail2Ban for Domoticz fails behind reverse proxy

Obviously can't work because it is not the remote machine making the TCP connection to the Domoticz server but your HTTP proxy machine. There is nothing reverse that the proxy can do btw and should you have instructed it to do so anyway you're just wasting CPU time.
by PierreT
Thursday 01 August 2024 20:25
Forum: Suggestions
Topic: Add a flag to manage always incrementing total counters
Replies: 10
Views: 2968

Re: Add a flag to manage always incrementing total counters

I'm not really following this. I know this thread started from a comment made in another topic about P1 data, which is probably the only meter device that allows numbers to decrease because the report is always considered to be actual. That said, for day reports this should only pose an issue on the ...
by PierreT
Thursday 18 July 2024 17:42
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Upgrade from 2021.1 to 2024.7 issues
Replies: 13
Views: 4656

Re: Upgrade from 2021.1 to 2024.7 issues


This is probably unrelated to his issue of TS (giving his repository error). Second you do not need the nowwwpwd option. Just put your local network IP range in the trusted network setting and set basic http authorisation on in the same security settings page.

You do not want to know how many ...
by PierreT
Wednesday 17 July 2024 23:10
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Upgrade from 2021.1 to 2024.7 issues
Replies: 13
Views: 4656

Re: Upgrade from 2021.1 to 2024.7 issues


My PI is a Raspberry Pi 2 Model B Rev 1.1

I don't understand what you mind about user !

On the web interfac, on th e same network there's no authentication, and with the command line ./updaterelease, the error is about repository not found


I get you. Had the same feeling when moving to a ...
by PierreT
Friday 12 July 2024 10:08
Forum: DIY Hardware and Protocols
Topic: P1 Smart Meter with LAN
Replies: 8
Views: 2993

Re: P1 Smart Meter with LAN



(P1 Meter is pre DSMR 4.0 - using DSMR 2.2 compatibility)



This comment puzzles me. The older message formats do not send a CRC and the log line you quoted here is because they also do not send any version info which causes domoticz to disable some features, including the CRC check.

Thus if ...
by PierreT
Friday 31 May 2024 12:27
Forum: Other questions and discussions
Topic: control tasmota RGB GU10 bulb from wall switch
Replies: 4
Views: 805

Re: control tasmota RGB GU10 bulb from wall switch

Depends on the protocol it uses. It's not listed as a supported device by RFXCOM

I was thinking less fancy. Like a klik-aan-klik-uit wall mount switch and then program Domoticz to respond to signals as follows:
click top for on, bottom for off
hold top for increase brightness/colour, hold bottom ...
by PierreT
Sunday 19 May 2024 18:08
Forum: Other questions and discussions
Topic: control tasmota RGB GU10 bulb from wall switch
Replies: 4
Views: 805

Re: control tasmota RGB GU10 bulb from wall switch

Sure. You can use e.g. a Klik-Aan-Klik-Uit transmitter to control a dummy device in Domoticz and then use on (dummy) device change scripting to send commands to the Tasmota device.
by PierreT
Monday 22 April 2024 18:39
Forum: Other questions and discussions
Topic: Old domoticz stopped working without being updated (GLIBC / OpenSSL errors)
Replies: 9
Views: 1990

Re: Old domoticz stopped working without being updated (GLIBC / OpenSSL errors)

Definitely must have had an update. Glibc in Stretch does not go beyond 2.24 but the error shows that the current installed Domoticz wants at least version 2.28.