Giter Site home page Giter Site logo

Network monitoring about espsomfy-rts HOT 13 CLOSED

rgr101 avatar rgr101 commented on June 10, 2024
Network monitoring

from espsomfy-rts.

Comments (13)

rstrouse avatar rstrouse commented on June 10, 2024

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.

rgr101 avatar rgr101 commented on June 10, 2024

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.

rstrouse avatar rstrouse commented on June 10, 2024

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.

rgr101 avatar rgr101 commented on June 10, 2024

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.

rstrouse avatar rstrouse commented on June 10, 2024

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.

rgr101 avatar rgr101 commented on June 10, 2024

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.

rstrouse avatar rstrouse commented on June 10, 2024

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.

rgr101 avatar rgr101 commented on June 10, 2024

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.

rstrouse avatar rstrouse commented on June 10, 2024

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.

rstrouse avatar rstrouse commented on June 10, 2024

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.

rgr101 avatar rgr101 commented on June 10, 2024

Great! This is exactly what I wanted to hear ๐Ÿ˜

from espsomfy-rts.

rstrouse avatar rstrouse commented on June 10, 2024

I am going to close this. I assume you are on your HA journey. Good luck.

from espsomfy-rts.

rgr101 avatar rgr101 commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.