Comments (13)
What are you expecting to see here? Short of the boot up sequence (which you wouldn't get anyway since the network would not yet be up) all of the status data is currently sent in json format over a socket connection. This includes the current wifi data.
A likely cause for the http data not executing is because of the http client on the loxone. Http is largely an async operation and depending on the HTTP client the socket is dedicated so sending another request before processing the last one is potentially problematic. I had this issue with HA as it simply blew over the HTTP requests when I did not perform a blocking transaction.
The other issue is that it takes some idle time for the radio to allow the motors to cool between frames and you can easily overwhelm the receiver on the motor. The best way to reduce this traffic is to send group commands but don't forget motors do not understand the concept of seeking to a location.
Are you using websockets on your Loxone? If you do the status will always be up to date.
from espsomfy-rts.
Ah I see.
So far, I'm controlling the ESP by simple http://... shadeCommand requests via the Loxone virtual output port. In this regard, I'm driving "blind" with no feedback, so my goal was to collect feedback via the network monitor.
Unfortunately Loxone only supports tcp, udp, http and wol, but no websockets (websockets are supported by Loxone though, but only if Loxone is the server).
Yes, reducing the number of requests using groups might be a good idea - as I don't know how to do a blocking transaction in Loxone yet either.
Everything worked again this morning - that's really strange, and I don't like such sporadic problems at all as long as I can't understand them logically ;)
btw - does the ESP fall into some kind of sleep mode (wifi?) after a certain idle time and then takes some time to wake up? (I think I had the impression that sometimes - after a long period of inactivity - the first command -even from its own webgui - was executed with a delay of several seconds but all subsequent ones immediately)
If so, I could relatively easily implement a wake-up in Loxone and send the actual requests with a time delay.
from espsomfy-rts.
I have disabled sleep mode for WiFi. I don't have any experience with loxone. But are you saying they implement websockets but you cannot listen on an open socket? I do see references on the interweb though of what is referred to as a loxone-websocket-client.
If you have battery motors then it is very likely that they go to sleep. For those give it a couple of repeats in the shade definition.
from espsomfy-rts.
Wifi sleep mode disabled:๐
Iโm afraid my knowledge in websockets is not sufficient - as far as I understand itโs quite complicated to establish a websocket connection to the Loxone Miniserver and it seems to having to be initiated always by the counterpart
No, I only have 230V motors.
btw - tonight everything went well again, closing 20 shades by 20 single requests ๐, all fired by Loxone within the same second.
from espsomfy-rts.
Like I said, I have no real knowledge of Loxone. Websockets are the most straightforward way of passing data so I would be shocked that there is no off the shelf socket client solution for events. Your other options include MQTT or even polling but polling is terribly inefficient.
from espsomfy-rts.
Yes, I find that strange, too. And youโll again be shocked by hearing that Loxone doesnโt natively support MQTT. They are pursuing an increasingly proprietary business policy and opposing many open standards (or offer wickedly expensive gateways for some) which makes me increasingly uncomfortable...
HA is relatively new to me and Iโm pretty impressed, so I'm actually thinking about switching from Loxone to HA in the future; on the other hand, I'm a bit reluctant to move away from an unpleasantly proprietary but super stable system and embark on an "unknown adventure"... But maybe I'll find a "gentle" smooth migration path where both systems coexist for a while. I have seen that there is an HA plugin for Loxone...
My problem is that I'm aiming more for a reduction in complexity, as my grown environment is already too heterogeneous and maintenance-unfriendly (Loxone, KNX, Homebridge, Mediola, ESPSomfyRTS, my own ESPs, Somfy, Elro, Intertechno...)! But I already have some ideas for streamlining, and my hope is that the incredible flexibility of HA could support me in this endeavor ?!?
from espsomfy-rts.
I have been at the automation game for a while. HA really does pull together disparate options into a single platform. Almost everything in my home is automated inside and out.
from espsomfy-rts.
Sounds great!
Would you think I would be well served with a "Home Assistant Green" device to start with?
An out-of-the-box solution seems attractive to me, especially for the central unit ๐ - However, I still don't have a feeling for the actual resource requirements.
from espsomfy-rts.
I went with a fanless i7 pc home server running proxmox. That being said I have a lot going on. Irrigation, pool, wine cellar, garages, alam, climate, media, and a whole lot of switches and plugs. Lots of folks run HA on pretty modest hardware.
from espsomfy-rts.
Btw I the vm on the home server is way more power than is needed. The resources available to the green are about what I have assigned to the VM.
from espsomfy-rts.
Great! This is exactly what I wanted to hear ๐
from espsomfy-rts.
I am going to close this. I assume you are on your HA journey. Good luck.
from espsomfy-rts.
Exactly: I grabbed a "Green" box - works really fine.
But the HA journey is arduous, esp. the first steps, as Loxone has conditioned me to graphical block programming, so I'm far away from textual coding and never used YAML... (it's hard to find a YAML-HA language reference!?!)
All the more by myself not being the greatest coder (more an architect)... Luckily ChatGPT (don't laugh!) is a good facilitator and teacher, even if its codes often is the biggest nonsense - but also this is a good training...
I already succeeded in integrating your ESPSomfy HA integration - working out-of-the-box like magic !!!
Thanks again for your great contribution!
Now my next challenge is to implement the automation stuff...
from espsomfy-rts.
Related Issues (20)
- adding the IO control point HOT 2
- Platform espsomfy_rts does not generate unique IDs. since Update of HA to 2024.5.2 HOT 2
- Wifi connection timeout HOT 7
- Local UI / Touchscreen support HOT 4
- Unable to connect to the interface HOT 6
- WIFI AP HOT 2
- Which bin file for ESP32-C6 WROOM-N8 HOT 7
- Hi, thaks for your project and effort. HOT 20
- Thanks for your excellent project. HOT 3
- Wifi reconnect HOT 8
- ESPSomfy AP back online HOT 23
- Radio not initialized HOT 2
- Somfy keytis HOT 39
- Question: support hardware "Connair" (foto inside) possible? HOT 2
- Will 433.92 motorline work? HOT 10
- Question or Feature request : detect close and open HOT 1
- Question: combined control via remote
- Wrong Tilt position when pressing My function through TaHoma HOT 17
- Add a second (alternative) Wi-FI to connect to, when the primary is not available HOT 2
- Blind tilts when sending up or down commands HOT 14
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 espsomfy-rts.