Closed california444 closed 9 months ago
It should be possible but .. as for my knowledge, later version of hap-nodejs will require a later version of node js which is not available at the ccu3 firmware. So updating the hapnodejs version will break the add-on for ccu3 users ...
Hi @thkl, hap-node-js needs node.js >= 10.17 (https://github.com/homebridge/HAP-NodeJS/blob/master/package.json).
I'm using RaspberryMatic and my help page says it has node.js v14 installed. And it looks like that CCU3 users should have the same, but not 100% sure.
According to this, it should not be a problem. Would be helpful if a CCU3 user could confirm this...
Siehe https://github.com/thkl/hap-homematic/issues/621#issuecomment-1561420030 Die Original CCUs haben folglich nodejs kleiner 10. solange sich EQ3 hier nicht neu aufstellt, geht es also nicht
For everyone with RaspberryMatic: Updating HAP-NodeJS to version 0.11.1 and changing to ciao as advertiser worked seamless for me:
node --version
showed version 18"advertiser": „ciao“
to the publishInfo objectcd /usr/local/addons/hap-homematic/node_modules/hap-homematic
npm i hap-nodejs@latest
/usr/local/etc/config/rc.d/hap-homematic restart
Hi @california444
Did you added exactly:
"advertiser": „ciao“, <- with comma ? or advertiser: „ciao“, <- with comma ?
br, Richard
var publishInfo = {
username: username,
port: this.currentPortNum,
pincode: pin,
setupID: setupID,
advertiser: "ciao",
category: Accessory.Categories.BRIDGE
}
It doesn't matter if there are quotation marks or not as keys for the object. But they must be normal quotation marks for the value so use 2 " and not one „ and “ You can also remove the deprecated mdns item
danke Thomas :-)
@thkl ... Mir ist aufgefallen dass bei "ciao" die Geräte bei einem Wechsel der Steuerzentrale (von einem ATV zu einem anderen) nicht mehr erreichbar sind. Ein reboot der HAP Instanz macht die Geräte wieder erreichbar. Bei "bonjour" ist das nicht der Fall. Woran könnte das liegen ?
Is your feature request related to a problem? Please describe. The current version of the plugin uses bonjour as mdns library. Bonjour advertises only on IPv4 and causes a lot of unnecessary network traffic.
Describe the solution you'd like Recent versions for Hap-NodeJS are offering avahi or ciao as mdns advertiser. Both, avahi and ciao cause a lot less network traffic. Avahi (and probably ciao in the near future as well ) also support IPv6.
Additional context I wanted to know if there are any plans to update the plugin to a newer version of Hap-NodeJS and to offer users the option to change the mdns advertiser.