-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http control Ufo #3
Comments
You could use ha_gateway. Allows you to set up a RESTful API and has an integration with ledenet_api. |
mm Thanks Ha is on the RPi.. I read that need the HW adres [ i do not have yet ] this is the mac? Only i do not understand how i give a command... |
Yeah, hardware address is MAC address. Are you looking at the example config file? # There are a couple of ways you can specify which device you'd like
# to control:
# 1. Specify no params. Control an arbitrary (maybe the only?) LEDENET
# device on your network.
# 2. Specify a hardware address. ha_gateway will attempt to resolve
# the host from the hw addr using a discovery protocol. This is
# preferable if you don't have a hostname or static IP for the
# LEDENET device.
# 3. Specify a host directly.
hw_addr: 00:00:00:00:00:00
host: ledenet1 You can also use |
exactly the example is where i am looking at. [[ i use the mac and set the ip, when i got 1 :-) ] What do i need to do more.... |
ha_gateway is a little REST server. You start it on some port (defined on the config), and then you can send REST commands at it. For example:
where 192.168.1.100 is whatever IP the server is running on, and The full HTTP spec is defined in the README of ha_gateway. |
going to try when i get the controller.. [ hard to get on this way ] I need your code and the Ha_gateway... This part Do i need to place your example in a script file?
When i install HA-gateway, and reboot my rpi, is this server running? [ cannot wait until i get the controller. ] |
The full API documentation for ha_gateway is in the README. Here's the section for https://github.com/sidoh/ha_gateway#put-lightlight_name You can currently control on/off, RGB, and "level" (brightness). Would be easy enough to add additional parameters. That's just the structure of an HTTP request to ha_gateway. You can obviously send it requests in a lot of ways. |
dear... |
Dear is see you have hacked the ufo rgbw controller..
Great job!!!!
I wil try to use this controller for my Home automation, Domoticz.
Is there perhaps a option that i can use your way with Http commands?
Domoticz can use the Http commands directly...
Or perhaps a script, domoticz can work with different types.
I did install the ledenet api, only now i am stuc.
Did install it on my RPi.
How can i use the api on a simple way.
I do not understand where i can place/put the api [ in putty is get strange values ]
Perhaps you have some examples, of your nice work
I am not ict expert... :-(
Hope you will help me with your nice hack...
I do not have a Ufo j@ this moment [ orderd 2 ] only i will learn before i got 1...
Thanks!!
The text was updated successfully, but these errors were encountered: