Search found 15 matches

by PBdA
Sunday 18 December 2022 10:20
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 270
Views: 22211

Re: Python Plugin: MqttMapper

It works directly with my push buttons. From my MqqttMapper.json: "Arme alarme": { "topic": "bidon/arm", "type": "244", "subtype": "73", "switchtype": "9", "set": {"topic": "riscopanel/alarm/1/set", "payload": "#"}, "mapping": {"item": "", "default": "100", "values": {"ARM_AWAY": "100"}} }, "Désarme ...
by PBdA
Sunday 18 December 2022 9:40
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 270
Views: 22211

Re: Python Plugin: MqttMapper

Thank you for your reply and especially for your plugin. I didn't know the '$' trick to hide a device. I add that for a device used only in the direction Domoticz -> MQTT, there is no problem because in this case main topic is not used. It's possible to have 2 devices with same topic in "set ...
by PBdA
Saturday 10 December 2022 19:31
Forum: Python
Topic: Python Plugin: MqttMapper
Replies: 270
Views: 22211

Re: Python Plugin: MqttMapper

This plugin is very interesting. I want to control a RISCO alarm interfaced with MQTT by vanackej/risco-mqtt-local vanackej/risco-mqtt-local is compatible with autodiscover, but with Domoticz only the PIR sensors are recognized. The alarm status is missing (topic: "riscopanel/alarm/1/status", values ...
by PBdA
Sunday 20 September 2020 18:06
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: Changing the Standaard Graphs
Replies: 1
Views: 502

Re: Changing the Standaard Graphs

Hello,

I have the same problem. Did you find a solution ?
by PBdA
Wednesday 11 March 2020 18:24
Forum: Z-Wave
Topic: Migrating Zwave settings, can it be done?
Replies: 5
Views: 750

Re: Migrating Zwave settings, can it be done?

There is a known problem with Aeotec Gen 5 stick and Rpi4. See https://github.com/raspberrypi/linux/issues/3027 A solution is to use an USB 2.0 hub between Rpi4 and Zwave stick. You should recover your zwave conf.
by PBdA
Tuesday 10 March 2020 21:55
Forum: Z-Wave
Topic: "Groups & network" not working
Replies: 4
Views: 883

"Groups & network" not working

I run Domoticz stable with an Aeotec Gen 5 USB stick. My zwave network (17 devices) works well but when I try to access "Groups & network", screen is greyed out and web interface hangs. Anything I can do to recover "Groups & network" screen ?
Thank you for your help.
by PBdA
Tuesday 03 October 2017 14:16
Forum: Python
Topic: Python plugin: Battery Level for Z-Wave Devices
Replies: 167
Views: 33858

Re: Python plugin: Battery Level for Z-Wave Devices

Looking at the code, I think that self.BatteryNodes should be reset at in pollnodes(self).

Code: Select all

# diff plugin.py.sv plugin.py
133a134
>                 self.BatteryNodes = []
That works for me but I don't know about side effects.
by PBdA
Tuesday 03 October 2017 11:27
Forum: Python
Topic: Python plugin: Battery Level for Z-Wave Devices
Replies: 167
Views: 33858

Re: Python plugin: Battery Level for Z-Wave Devices

Domoticz 3.8153 + Battery level plugin 4.4 on Rasbian Jessie I have a strange problem with the plugin. My polling interval is 60 mn. I monitor updates in an LUA script. Each hour battery level of my 6 devices are updated but there are several updates. In log file I see: 2017-10-03 11:12:28.503 LUA ...
by PBdA
Saturday 15 July 2017 9:37
Forum: Other questions and discussions
Topic: A sdcard friendly config on Raspberry
Replies: 8
Views: 2890

Re: A sdcard friendly config on Raspberry

And also domoticz.service should be enabled at boot by command:

Code: Select all

systemctl enable domoticz.service
To avoid a reboot you can start it first time by command:

Code: Select all

systemctl start domoticz.service
by PBdA
Saturday 15 July 2017 9:17
Forum: Other questions and discussions
Topic: A sdcard friendly config on Raspberry
Replies: 8
Views: 2890

Re: A sdcard friendly config on Raspberry

Lua script should be placed in directory /home/pi/domoticz/scripts/lua/ and is name should like script_time_xxxx.lua To be more simple, my scripts rely on Domoticz backups. Backupdir is the place where Domoticz put the backups: /home/pi/domoticz/backups/ and automatic backups should be enabled in ...
by PBdA
Friday 14 July 2017 21:48
Forum: Other questions and discussions
Topic: A sdcard friendly config on Raspberry
Replies: 8
Views: 2890

Re: A sdcard friendly config on Raspberry

/etc/watchdog.conf config file tells watchdog that file /tmp/domoticz.heartbeat should not older than 300 seconds. LUA time script renew file every minute. That way, if domoticz hangs for some reason, watchdog will reboot Raspberry after 5 minutes.
by PBdA
Thursday 16 February 2017 19:14
Forum: Other questions and discussions
Topic: A sdcard friendly config on Raspberry
Replies: 8
Views: 2890

A sdcard friendly config on Raspberry

Domoticz tends to write often on disk. When disk is a sdcard it is better to avoid to write too often. The idea is to mount /tmp in ramdisk and have Domoticz to work in /tmp Config: Raspberry Pi 3 with Raspbian Jessie. I start Domoticz with systemd. File is /etc/systemd/system/domoticz.service ...
by PBdA
Wednesday 27 January 2016 15:24
Forum: Switches and Scenes
Topic: How to generate a short (1 second) negative pulse
Replies: 4
Views: 1308

Re: How to generate a short (1 second) negative pulse

Nice idea but I have taken another way: Qubino ZMNHND1 Flush 1D relay can be configured to return to On by itself with a configurable delay. I had to use a recent OpenZwave config but it works.
Thank you for your help.
by PBdA
Tuesday 26 January 2016 23:42
Forum: Switches and Scenes
Topic: How to generate a short (1 second) negative pulse
Replies: 4
Views: 1308

Re: How to generate a short (1 second) negative pulse

jautem wrote:can you use sleep function in lua script , turn off , sleep 3 et turn back on ?
Sleep is a bad thing in lua script because it blocks execution of other scripts. Furthermore, I think it doesn't work because commandArray is executed at once when script return.
by PBdA
Thursday 14 January 2016 11:40
Forum: Switches and Scenes
Topic: How to generate a short (1 second) negative pulse
Replies: 4
Views: 1308

How to generate a short (1 second) negative pulse

Hello, I have a zwave relay (Qubino ZMNHND1 Flush 1D relay) which commands an alarm. The relay is normally closed and to arm or disarm alarm, it should open for a short time and then close. I have tried a lua script: commandArray[1] = {['Alarm command'] = 'Off'} commandArray[2] = {['Alarm command ...