Comments (6)
That's not supported, since Shelly devices broadcast status updates in the subnet that they are in, and so setting a static IP address of a device in another subnet would make the on/off state in the Home app not reflect the actually state of the Shelly1 switch.
In your case I think you need to go with an MQTT setup. I've been considering adding MQTT support to this plugin but that's probably going to take a while so in the meantime you unfortunately need to find another solution.
from homebridge-shelly.
Thank you for clarification. I moved them to my main LAN where homebridge runs and they work OK.
Looking forward to MQTT support.
Keep up the good work, thanks!
from homebridge-shelly.
Same problem here.
My workaround: I switched to the plugin homebridge-http-switch
. It is more generic and needs a bit more config. It allows to pull the status. This is not very elegant, but it is still working, if the Shellies are in another (sub)net.
For my Shelly PlugS I added the accessory to my config.json:
{
"accessory": "HTTP-SWITCH",
"name": "Switch",
"switchType": "stateful",
"onUrl": {
"url": "http://shellyplug-s-XXXXXX/relay/0?turn=on",
"method": "GET",
"auth": {
"username": "yourUsername",
"password": "yourPassword"
}
},
"offUrl": {
"url": "http://shellyplug-s-XXXXXX/relay/0?turn=off",
"method": "GET",
"auth": {
"username": "yourUsername",
"password": "yourPassword"
}
},
"statusUrl": {
"url": "http://shellyplug-s-XXXXXX/relay/0",
"method": "GET",
"auth": {
"username": "yourUsername",
"password": "yourPassword"
}
},
"statusPattern": "\"ison\":true",
"pullInterval": 1000
}
You have to substitute the six 'X' in the URLs with the ID of your Shelly and change the username and password.
Shelly's API-documentation is very helpful.
from homebridge-shelly.
Hi, @thoschworks, this was helpful as I have a Shelly 1 on a different WiFi than my Synology where Homebridge runs. However, I only use the Shelly to obtain temperature readings from a Shelly Temp Addon, which is not supported by the Shelly plugin. Do you have any idea whether this route would expose the temperature measurements to HomeKit?
from homebridge-shelly.
[...] I only use the Shelly to obtain temperature readings from a Shelly Temp Addon, which is not supported by the Shelly plugin. Do you have any idea whether this route would expose the temperature measurements to HomeKit?
Perhaps homebridge-http-advanced-accessory
could solve your use case.
from homebridge-shelly.
Hmm, seems interesting, yes. However, I am not sure what would be the right URL to obtain the temp readings? It can't be as "easy" as the IP of the Shelly 1, I presume?
from homebridge-shelly.
Related Issues (20)
- Shelly 0-10[New device]
- BLU Motion sensor, BLU Gateway HOT 1
- Shelly 1MINI HOT 10
- [Support]
- [Support] Add Dimmer as a Switch HOT 1
- [Support] Error: addMembership ENOBUFS HOT 1
- [Support] Flood Sensor not showing leak sensor HOT 1
- Shelly plugin in container suddenly stopped working HOT 2
- Shelly Pro Dual Cover
- Shelly Plug S does not switch off HOT 2
- [Feature request] UK Shelly Plug Support
- Shelly 1V3 in detached mode
- [Bug] Dimmer 2 is set to 100% instead of XY% when dimming
- [Support] No shelly devices found
- [Support]
- Shelly 1 PM devices: Activation possible / deactivation not possible! HOT 4
- [Bug] Button 1 does not show
- [Support] Shelly Button, Homebridge receives no signals. HOT 1
- [Bug] Shelly Button1 shows up in Homebridge as 2 items neither appear in Home App
- [Support] Shelly Door/Window 2 not recognised
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-shelly.