PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

No devices are showing in the iOS apps, except homebridge itself #124

Closed redomo closed 4 years ago

redomo commented 6 years ago

Hi there, I've installed edomoticz' homebridge and adapted the config.json to my situation. The issue I have is that I do see under the iOS apps (Eve and Woning) the homebridge accessory, but none of my Domoticz devices show up. I've tried to change to RoomId to all possible values, but whatever I try, no devices are shown. What am I doing wrong? I'm running the latest stable versions of domoticz and edomoticz-homebridge.

simonrb2000 commented 6 years ago

Room number is the IDX number.. Have you set that?

Could try removing room number to see it that works

redomo commented 6 years ago

image. That's my roomplans. Made a new one just for homebridge.

This is the config.json: image

redomo commented 6 years ago

Hi there,Tried all the things, but no solution. I've now posted both a printscreen of the Domoticz and a Json.config.Hope you can help further.Thanks.Op 8 december 2017 om 10:06 schreef simonrb2000 notifications@github.com:Room number is the IDX number.. Have you set that?Could try removing room number to see it that works—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread. 

Lorccan commented 6 years ago

In the screenshots, you have roomid set to 2 in the config file and 3 for Homebridge in the Domoticz plan. These should match.

Have you tried using 0 as the room id in config.json? All devices that are available should then appear.

redomo commented 6 years ago

I've tested with everything from 0 to 3. Nothing worked.... All I see in the apps is homebridge itself.

Lorccan commented 6 years ago

Do you have any devices in the Homebridge room in Domoticz? (It's unclear from the picture which room is selected.)

I don't think it will make a difference, but I have my config.json in this order. I have just noticed that you also have 'Domoticz' instead of 'eDomoticz in the name of the platform.

{
    "description" : "Configuration file for Domoticz platform",
    "bridge" : {
            "name" : "Homebridge",
            "username" : "CC:22:3D:E3:CE:30",
            "port" : 51826,
            "pin" : "031-45-154"
        },
    "platforms": [
               {
            "platform": "eDomoticz",
            "name":     "eDomoticz",
            "server":   "127.0.0.1",
            "port":     "8080",
            "roomid":   0,
            "ssl":      0,
            "mqtt":     true
        }
],
    "accessories" : [
    ]
}
redomo commented 6 years ago

I can change that. Maybe it makes a difference.

What you are seeing is the ground level, begane grond in Dutch.

simonrb2000 commented 6 years ago

Shouldn’t that be 3 and not 2.

On 14 Dec 2017, at 12:04, Lorccan notifications@github.com<mailto:notifications@github.com> wrote:

In the screenshots, you have roomid set to 2 in the config file and 3 for Homebridge in the Domoticz plan. These should match.

Have you tried using 0 as the room id in config.json? All devices that are available should then appear.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-351692448, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCACv5zPTt63mo_1Q_l7590gwheil8ks5tAQ7ZgaJpZM4Q5dAI.

redomo commented 6 years ago

Yes, I've tried all. From 0 to 3. No devices other the 'homebridge' itself shows in the iOS apps Eve and "woning".Op 14 december 2017 om 16:19 schreef simonrb2000 notifications@github.com: Shouldn’t that be 3 and not 2. On 14 Dec 2017, at 12:04, Lorccan notifications@github.com<mailto:notifications@github.com> wrote: In the screenshots, you have roomid set to 2 in the config file and 3 for Homebridge in the Domoticz plan. These should match. Have you tried using 0 as the room id in config.json? All devices that are available should then appear. — You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-351692448, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCACv5zPTt63mo_1Q_l7590gwheil8ks5tAQ7ZgaJpZM4Q5dAI. —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread. 

RienduPre commented 6 years ago

Any resolution, because I have the same issue

redomo commented 6 years ago

Sorry no. Feedback given didn't result in any improvement.

What helped is, I did a fresh install on an older RP2 for test purposes. That worked! So now I have to reinstall all devices on that RP2 as there's also no good way to get all devices from one to the other. Copying the database isn't working... Reinstalling 20+ devices is also not funny...

So for now I'm running without Siri or HomeKit. Bummer!

Op 16 jan. 2018 om 19:55 heeft RdP notifications@github.com het volgende geschreven:

Any resolution, because I have the same issue

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

simonrb2000 commented 6 years ago

When you say only homebridge is showing, I assume you have added it as a device?!?

Copying devices/database over will not work. If you reinstall then you need to redo everything. I have to Homebridges running with around 160 devices so I know how you feel when you have to setup from scratch..

redomo commented 6 years ago

Yes, I've reinstalled from an image that included homebridge and added some dummy switches for testing. The dummy switches show up in the home kit apps.

On the other system, the one that's not showing any of my devices, all I see is the homebridge itself, no devices.

Op 16 jan. 2018 om 20:36 heeft simonrb2000 notifications@github.com het volgende geschreven:

When you say only homebridge is showing, I assume you have added it as a device?!?

Copying devices/database over will not work. If you reinstall then you need to redo everything. I have to Homebridges running with around 160 devices so I know how you feel when you have to setup from scratch..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

simonrb2000 commented 6 years ago

Ok but to confirm. You have selected homebridge in Home app and entered the pin to pair/add it?

On 16 Jan 2018, at 19:41, redomo notifications@github.com<mailto:notifications@github.com> wrote:

Yes, I've reinstalled from an image that included homebridge and added some dummy switches for testing. The dummy switches show up in the home kit apps.

On the other system, the one that's not showing any of my devices, all I see is the homebridge itself, no devices.

Op 16 jan. 2018 om 20:36 heeft simonrb2000 notifications@github.com<mailto:notifications@github.com> het volgende geschreven:

When you say only homebridge is showing, I assume you have added it as a device?!?

Copying devices/database over will not work. If you reinstall then you need to redo everything. I have to Homebridges running with around 160 devices so I know how you feel when you have to setup from scratch..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-358080513, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCAAstrF4djJbQ8jwCTexZoeYRrInlks5tLPtQgaJpZM4Q5dAI.

redomo commented 6 years ago

Yep!

Op 16 jan. 2018 om 20:46 heeft simonrb2000 notifications@github.com het volgende geschreven:

Ok but to confirm. You have selected homebridge in Home app and entered the pin to pair/add it?

On 16 Jan 2018, at 19:41, redomo notifications@github.com<mailto:notifications@github.com> wrote:

Yes, I've reinstalled from an image that included homebridge and added some dummy switches for testing. The dummy switches show up in the home kit apps.

On the other system, the one that's not showing any of my devices, all I see is the homebridge itself, no devices.

Op 16 jan. 2018 om 20:36 heeft simonrb2000 notifications@github.com<mailto:notifications@github.com> het volgende geschreven:

When you say only homebridge is showing, I assume you have added it as a device?!?

Copying devices/database over will not work. If you reinstall then you need to redo everything. I have to Homebridges running with around 160 devices so I know how you feel when you have to setup from scratch..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-358080513, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCAAstrF4djJbQ8jwCTexZoeYRrInlks5tLPtQgaJpZM4Q5dAI. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

simonrb2000 commented 6 years ago

Hmmm, try starting again with it.. delete the persist folder after deleting your home in the home app. Then restart homebridge and start again, oh also change the username in the config file.

On 16 Jan 2018, at 19:56, redomo notifications@github.com<mailto:notifications@github.com> wrote:

Yep!

Op 16 jan. 2018 om 20:46 heeft simonrb2000 notifications@github.com<mailto:notifications@github.com> het volgende geschreven:

Ok but to confirm. You have selected homebridge in Home app and entered the pin to pair/add it?

On 16 Jan 2018, at 19:41, redomo notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> wrote:

Yes, I've reinstalled from an image that included homebridge and added some dummy switches for testing. The dummy switches show up in the home kit apps.

On the other system, the one that's not showing any of my devices, all I see is the homebridge itself, no devices.

Op 16 jan. 2018 om 20:36 heeft simonrb2000 notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> het volgende geschreven:

When you say only homebridge is showing, I assume you have added it as a device?!?

Copying devices/database over will not work. If you reinstall then you need to redo everything. I have to Homebridges running with around 160 devices so I know how you feel when you have to setup from scratch..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-358080513, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCAAstrF4djJbQ8jwCTexZoeYRrInlks5tLPtQgaJpZM4Q5dAI. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-358085297, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCAFKqa6zLi1jTv7hVvcFSWMxNPT8Jks5tLP7sgaJpZM4Q5dAI.

redomo commented 6 years ago

Can you please detail out how to start again. I’m not an expert. The persist folder was already deleted a couple of times after which I did a reboot. I suspected a problem with node, as long ago I added a Sonos switch to Domoticz, and reinstalled that. All without succes.

Op 16 jan. 2018 om 20:59 heeft simonrb2000 notifications@github.com het volgende geschreven:

Hmmm, try starting again with it.. delete the persist folder after deleting your home in the home app. Then restart homebridge and start again, oh also change the username in the config file.

On 16 Jan 2018, at 19:56, redomo notifications@github.com<mailto:notifications@github.com> wrote:

Yep!

Op 16 jan. 2018 om 20:46 heeft simonrb2000 notifications@github.com<mailto:notifications@github.com> het volgende geschreven:

Ok but to confirm. You have selected homebridge in Home app and entered the pin to pair/add it?

On 16 Jan 2018, at 19:41, redomo notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> wrote:

Yes, I've reinstalled from an image that included homebridge and added some dummy switches for testing. The dummy switches show up in the home kit apps.

On the other system, the one that's not showing any of my devices, all I see is the homebridge itself, no devices.

Op 16 jan. 2018 om 20:36 heeft simonrb2000 notifications@github.com<mailto:notifications@github.commailto:notifications@github.com> het volgende geschreven:

When you say only homebridge is showing, I assume you have added it as a device?!?

Copying devices/database over will not work. If you reinstall then you need to redo everything. I have to Homebridges running with around 160 devices so I know how you feel when you have to setup from scratch..

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-358080513, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCAAstrF4djJbQ8jwCTexZoeYRrInlks5tLPtQgaJpZM4Q5dAI. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/PatchworkBoy/homebridge-edomoticz/issues/124#issuecomment-358085297, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APQCAFKqa6zLi1jTv7hVvcFSWMxNPT8Jks5tLP7sgaJpZM4Q5dAI. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

PatchworkBoy commented 6 years ago

To fix node on ARMv6:

sudo apt-get remove nodejs
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
wget https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-armv6l.tar.gz
tar -xvf node-v6.3.1-linux-armv6l.tar.gz
cd node-v6.3.1-linux-armv6l
sudo cp -R * /usr/local/

For ARMv7, change armv6l to armv7l in all the above commands.

rm -rf ~/.homebridge/accessories
rm -rf ~/.homebridge/persist
sudo rm -rf /usr/local/lib/node_modules/homebridge
sudo rm -rf /usr/local/lib/node_modules/homebridge-edomoticz
sudo npm install -g --unsafe-perm homebridge
sudo npm install -g --unsafe-perm homebridge-edomoticz

Launch homebridge, create new home, add eDomoticz, pair. Home.app should then prompt you with each accessory to add. Once configured there it should all show up in 3rd party apps.

For any other npm modules you’ve installed (ie: things which are of no relation to domoticz / homebridge) in /usr/local/lib/node_modules, you’ll need to go into each one’s folder and run...

sudo npm rebuild

This generally needs doing across the board whenever you change node version.