windkh / node-red-contrib-shelly

Shelly control nodes for node red.
MIT License
33 stars 21 forks source link

BLU Motion sensor, BLU Gateway #136

Closed ahartman closed 10 months ago

ahartman commented 10 months ago

Any chance of supporting the new devices in your fine package? Regards, ahartman

windkh commented 10 months ago

Ok I will order one and try what I can do

ahartman commented 10 months ago

Dear Karl-Heinz,

Thank you, I am looking forward to it.

Met vriendelijke groeten, Kind regards, Mes meilleures salutations, Freundliche Grüße, André Hartman Rodeweg 90 B-2920 Kalmthout België

Op 11 nov. 2023, om 10:01 heeft Karl-Heinz Wind @.***> het volgende geschreven:

Ok I will order one and try what I can do

— Reply to this email directly, view it on GitHub https://github.com/windkh/node-red-contrib-shelly/issues/136#issuecomment-1806756190, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIBPD5WC6XWE2GAXAHU4TYD45GRAVCNFSM6AAAAAA7HDBID2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWG42TMMJZGA. You are receiving this because you authored the thread.

windkh commented 10 months ago

Devices arrived today The gateway should be easy to integrate https://shelly-api-docs.shelly.cloud/gen2/Devices/ShellyBluGw

windkh commented 10 months ago

Maybe a new script needs to be created for scanning Bluetooth signals and passing them forward to node-red https://github.com/ALLTERCO/shelly-script-examples/blob/main/ble-shelly-blu.js

2 scripts must be uploaded: one for callback and one for scanning bluetooth --> polling will probably not work with the gateway.

windkh commented 10 months ago

@ahartman

in my tests the gateway is currently a node that can be used inside node-red. This node could just scan for bluetooth signals end emit the received values in raw format. if so you would need to process that raw data in node-red to find out what button or sensor triggered the message.

As an alternative I could create an additional node for all BLU devices: next to "gen1" and "gen2" there would be a third called "blu". But as bluetooth device do not have an IP address I would need to find another way for identifying the devices e.g. the device ID which can be found in the shelly app.

What do you think would be better?

ahartman commented 10 months ago

Dear Karl-Heinz,

I think the first challenge is to get a Bluetooth link. I did not yet manage to link the sensor either to my Mac or to my iPhone. I also purchased the Shelly Blu-Gateway; supposedly the sensor connects to that gateway and the gateway forwards the data from the sensor over Wifi. I also did not yet manage to link the sensor to the gateway as I cannot find instructions how to do that. I submitted a support request to Shelly how to do this but no answer yet.

Met vriendelijke groeten, Kind regards, Mes meilleures salutations, Freundliche Grüße, André Hartman Rodeweg 90 B-2920 Kalmthout België

Op 19 nov. 2023, om 22:18 heeft Karl-Heinz Wind @.***> het volgende geschreven:

@ahartman https://github.com/ahartman in my tests the gateway is currently a node that can be used inside node-red. This node could just scan for bluetooth signals end emit the received values in raw format. if so you would need to process that raw data in node-red to find out what button or sensor triggered the message.

As an alternative I could create an additional node for all BLU devices: next to "gen1" and "gen2" there would be a third called "blu". But as bluetooth device do not have an IP address I would need to find another way for identifying the devices e.g. the device ID which can be found in the shelly app.

What do you think would be better?

— Reply to this email directly, view it on GitHub https://github.com/windkh/node-red-contrib-shelly/issues/136#issuecomment-1817980439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIBPDDERRGMJPDPGQUBCLYFJZSVAVCNFSM6AAAAAA7HDBID2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXHE4DANBTHE. You are receiving this because you were mentioned.

windkh commented 10 months ago

@ahartman please test with the new gateway node

ahartman commented 10 months ago

Dear Karl-Heinz,

I installed your version 10.15.0 but there is no gateway node in the node package.

I only see:

shelly gen 1 shelly gen 2 shelly cloud

Met vriendelijke groeten, Kind regards, Mes meilleures salutations, Freundliche Grüße, André Hartman Rodeweg 90 B-2920 Kalmthout België

Op 20 nov. 2023, om 21:43 heeft Karl-Heinz Wind @.***> het volgende geschreven:

Closed #136 https://github.com/windkh/node-red-contrib-shelly/issues/136 as completed.

— Reply to this email directly, view it on GitHub https://github.com/windkh/node-red-contrib-shelly/issues/136#event-11016494493, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIBPGUG3HXV4X3RNG7J5TYFO6GBAVCNFSM6AAAAAA7HDBID2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGAYTMNBZGQ2DSMY. You are receiving this because you were mentioned.

windkh commented 10 months ago

Take gen 2 node. Then choose the type BLU-Gateway from the list where you have Relay, Dimmer,...

ahartman commented 10 months ago

Karl-Heinz,

Gateway is connected and reports {empty} in a debug node.

I cannot get the BLU Sensor to link over Bluetooth to the Gateway. I press the Sensor button 10 seconds and it starts blinking blue.

Then I press the button on the Gateway until red blinking. When I release the button I sometimes get one short blue blink but then it turns red and green again. No UI to see what is happening, maddening.

Met vriendelijke groeten, Kind regards, Mes meilleures salutations, Freundliche Grüße, André Hartman Rodeweg 90 B-2920 Kalmthout België

Op 22 nov. 2023, om 12:23 heeft Karl-Heinz Wind @.***> het volgende geschreven:

Take gen 2 node. Then choose the type BLU-Gateway from the list where you have Relay, Dimmer,...

— Reply to this email directly, view it on GitHub https://github.com/windkh/node-red-contrib-shelly/issues/136#issuecomment-1822586521, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIBPF53ZFPRTPQYQYYLQ3YFXODJAVCNFSM6AAAAAA7HDBID2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGU4DMNJSGE. You are receiving this because you were mentioned.

windkh commented 10 months ago

Did you add the device to your Wifi with the new blue shelly app?

ahartman commented 10 months ago

Karl-Heinz,

No, I did via the browser interface on 192.168.33.1. Does that make a difference in the Bluetooth linking between gateway and sensor? That still does not work for me.

Met vriendelijke groeten, Kind regards, Mes meilleures salutations, Freundliche Grüße, André Hartman Rodeweg 90 B-2920 Kalmthout België

Op 22 nov. 2023, om 18:20 heeft Karl-Heinz Wind @.***> het volgende geschreven:

Did you add the device to your Wifi with the new blue shelly app?

— Reply to this email directly, view it on GitHub https://github.com/windkh/node-red-contrib-shelly/issues/136#issuecomment-1823185268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFIBPAOFOPX4M4UWEPWV63YFYX57AVCNFSM6AAAAAA7HDBID2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGE4DKMRWHA. You are receiving this because you were mentioned.

windkh commented 10 months ago

@ahartman if you can access 192.168.33.1 via browser that is good: just re-configure the shelly: you need to add it to your wifi by name and password under the settings menue so that it receives a new IP from your home. It needs to be in the same network segment where your node-red device is: e.g. 192.168.178.x After configuring the wifi the shelly may be rebooted.