First of all, make a good backup
Normally shouldn't be a problem. One thing I noticed in 2023.1 is that the S value of a dimmer isn't passed in the devicechanged lua table. Therefor a dimmer arrives as On/Off in php instead of it's level %. Haven't found a fix yet for that so I returned to 2022.2.
The update has gone surprisingly well. Now updated for 3 days and no big issues yet.
issues i got were:
1 Blinds no longer functioning
-> why? because in old version the status was on, off and stop now it is open, closed and stopped
--> solution: change the every php where the status is checked
2 Dashticz was not fuctioning correct for screens, up was down and down was up
-> why? old version of dashticz
--> solution: upgrade to latest version.
Egregius wrote: ↑Sunday 19 February 2023 3:02
First of all, make a good backup
Normally shouldn't be a problem. One thing I noticed in 2023.1 is that the S value of a dimmer isn't passed in the devicechanged lua table. Therefor a dimmer arrives as On/Off in php instead of it's level %. Haven't found a fix yet for that so I returned to 2022.2.
Thanks for noticing this.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Egregius wrote: ↑Sunday 19 February 2023 3:02
First of all, make a good backup
Normally shouldn't be a problem. One thing I noticed in 2023.1 is that the S value of a dimmer isn't passed in the devicechanged lua table. Therefor a dimmer arrives as On/Off in php instead of it's level %. Haven't found a fix yet for that so I returned to 2022.2.
Thanks for noticing this.
That is fixed in 2023 beta but a little bit different, it is now in devicechanged_ext, see viewtopic.php?p=299819#p299819
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Egregius wrote: ↑Sunday 19 February 2023 3:02
First of all, make a good backup
Normally shouldn't be a problem. One thing I noticed in 2023.1 is that the S value of a dimmer isn't passed in the devicechanged lua table. Therefor a dimmer arrives as On/Off in php instead of it's level %. Haven't found a fix yet for that so I returned to 2022.2.
Thanks for noticing this.
That is fixed in 2023 beta but a little bit different, it is now in devicechanged_ext, see viewtopic.php?p=299819#p299819
@Egregius did you by any chance checked this ?? if we can continue to upgrade ;-0 from 2022.2.
I now have again everything up and running with zigbee2mqtt and zwave-js-ui as replacement of OZW.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
I didn't update anymore. I'm currently working on new cron jobs running in loop instead of single runs and a mqttclient. I was thinking to run zwave-js inside Home assistant as it's easier to update there and then have my php mqtt client receive the zwave signals directly without domoticz.
At this moment I have the new crons operational and the mqtt client. The move to zwave-js will be for after the vacation. I'm not gonna risk to change it now.
Egregius wrote: ↑Thursday 22 June 2023 7:57
The move to zwave-js will be for after the vacation. I'm not gonna risk to change it now.
I can imagine. As it took me 2 weeks to get it stable again. (different post).
Can you share the new idea on the architecture ?
Interested to see these CRONS as well.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
My idea is to have everything mqtt based. Domoticz publishes updates to mqtt, home assistant does also. In the future il add zwave-js so that's also in mqtt. Then with one mqtt client in php I'll have all data instantly.
Because of this, the lua script isn't used anymore.
The crons are basically the same. Only difference is that it runs in a loop within php instead of being called by cron.sh. Just did that to have things switched at exactly 0,10, 20 seconds etc and not at 2,12,23...
Egregius wrote: ↑Thursday 22 June 2023 16:03
I've seen your post
My idea is to have everything mqtt based. Domoticz publishes updates to mqtt, home assistant does also. In the future il add zwave-js so that's also in mqtt. Then with one mqtt client in php I'll have all data instantly.
Because of this, the lua script isn't used anymore.
The crons are basically the same. Only difference is that it runs in a loop within php instead of being called by cron.sh. Just did that to have things switched at exactly 0,10, 20 seconds etc and not at 2,12,23...
Is this a Pass2PHP on a few more steroids idea?
I currently have a lot of the easy automating moved from Pass2PHP to NodeRED.
node-red-egregius.PNG (176.93 KiB) Viewed 21385 times
And the difficult stuff (scraping websites e.g.) by Pass2PHP.
Any reason on the 'why to use Home Assistant'. supports more hardware and pushes it quite well to MQTT ??
Can I have a sneak preview in your GIT repo on how to setup the new idea?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
More steroids? Perhaps. Everything of my automation is handled by php. Domoticz is barely an interface between php and the hardware.
I started Home Assistant because my Ring doorbell died and I installed an Eufy one instead. Didn't find a good integration for that besides in HA. After that I also bought 10 wifi wall plugs and those are also just working in HA and not in domoticz.
That one I have bookmarked an now I understand why it starts with: $d=fetchdata();
I was looking for instructions on how to keep the cron php in a loop with the php mqtt client.
Maybe i need to dig a little deeper with your idea in mind.
Egregius wrote: ↑Friday 23 June 2023 10:38
More steroids? Perhaps. Everything of my automation is handled by php. Domoticz is barely an interface between php and the hardware.
I started Home Assistant because my Ring doorbell died and I installed an Eufy one instead. Didn't find a good integration for that besides in HA. After that I also bought 10 wifi wall plugs and those are also just working in HA and not in domoticz.
Gotcha, as expected HA has lots of native integrations, but in a docker my Pi is not that happy with it.
With the whole MQTT thought it is just a collector and the possibilities are then endless.
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
It was never the intention to make it simple
Just back in the days the only thing talked about here was lua, lua and lua. Just wanted to prove that other languages could be used as well.
HA is running in a Proxmox VM so it runs 100% stable. But, only used for my Eufy doorbell and some Tuya wifi wall plugs.
Already had issues with HA where stuff didn't work anymore after an update. Had to restore from a backup.
Haven't updated anymore since because it does what it needs to do and it does it stable in that version. Some with Domoticz for me. 2023.2 runs very stable and works perfectly with OpenZwave so why would I change that?
I'm getting a bit scared of updates globally. Recently received a FW update for my Sony HT-5000 speaker, still works but doens't startup automatically anymore whenever I put my TV on. So this one waits for another update and will then block internet access for it.
@egregius, don't know if you moved along with Domoticz 2024 releases
Currently working on a Docker stack (PHP-FPM + CRON + NGINX ) that handles your pass4mqtt.php idea.
Whilst looking at the code I think this is still pre-2024 Domoticz release.
As for a color switch it now stores '15' (indicating it is a color switch vs nvalue of 0,1 e.g.), however the level (brightness) that is stored in 'svalue1' or "Level" is thrown away,
My assumption correct ?
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.