Code Monkey home page Code Monkey logo

hue-to-loxone's Introduction

Hi there, I'm Marcel Schreiner ๐Ÿ‘‹

I'm a swiss embedded electronics and software engineer. For over a decade, my passion for electrical engineering has been a constant companion. Starting in hardware development and gradually moving into almost exclusively software development, I still feel at home in both areas. In my free time, I engage with topics such as building automation, electromobility, and renewable energy.

hue-to-loxone's People

Contributors

marcelschreiner avatar

Watchers

 avatar

hue-to-loxone's Issues

Question about udp packets to loxone server

Hi,

First of all thank you for posting this script. I've got it working today and I see all events being listed on my linux machine.
The script is sending the UDP packets to Loxone however in Loxone I'm not receiving all the information of the event.

For example : on my linux machine I see this event output

received event update LightLevel(id='61954f6b-e89f-4741-85ce-f0c30aee2788', owner=ResourceIdentifier(rid='cb58b3b2-cfcd-4e14-ab17-a8cff89325d3', rtype=<ResourceTypes.DEVICE: 'device'>), enabled=True, light=LightLevelFeature(light_level_report=LightLevelReport(changed=datetime.datetime(2023, 10, 29, 14, 31, 8, 296000, tzinfo=datetime.timezone.utc), light_level=4825), light_level=4825, light_level_valid=True), id_v1='/sensors/40', type=<ResourceTypes.LIGHT_LEVEL: 'light_level'>)
EVENT: {event}

However in Loxone I'm only getting ;

15;15:32:37.043;Loxone Miniserver;Received;10.10.4.41;Philips Hue;5000;hue_event{sensor_id}/{sensor_state};68 75 65 5f 65 76 65 6e 74 7b 73 65 6e 73 6f 72 5f 69 64 7d 2f 7b 73 65 6e 73 6f 72 5f 73 74 61 74 65 7d;;

But the objects field remains empty ...

Do you have any idea what could be the problem ?

Receive Hue bridge group events

Hi,

I see that the aiohue library also contains all necessary syntax regarding Hue light groups and I've been looking how this could be integrated in your code but my knowledge is not enought to find a solution.

What I'm looking for is to get a event when a group is turned on or (True or false in Hue). Then I can use this value in a virtual input and update the status of the on/off switch in Loxone whenever a light group is turning on or off.

As I'm using Hue automation with light sensors, groups are being turned off automatically after x minutes. For the moment I receive the event when motion is triggered and so the group is turned on, but when the timer expires it's the Hue bridge that switches the light group off so that event is not being reported leaving the button in Loxone in the ON state while the group is no longer in the ON state.

Is this something you could add to the script ?

Kind regards,

Filip

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.