-
Notifications
You must be signed in to change notification settings - Fork 198
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
Features for 5.0 #796
Merged
Merged
Features for 5.0 #796
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Additional to on/off/dim items i added color items. The colorUrl gets executed if a PUT is received with xy/ct/hue/sat in the body. Also changed the emulated bulb type to "Extended color light". Added "Change Editmode" button in the editdevice screen. Switch between manual JSON edit and the tabular variant. Local unsaved changes in one mode carry over to the other. Through this edit variant it's possible to change the order of items and do copy/paste.
I implemented full api support for rooms. That means: - Create/Modify/Delete rooms/lightgroups - Get information about group list / individual group - Group actions: Change lighting for the whole group (except setting scenes, because scenes are not implemented in ha-bridge right now) For now the rooms/groups can only be configured through the api and apps, it's not visible/changeable through the web gui.
If filter is active it will only show the devices that are visible for the given ip-address. Filter setting is saved until browser tab is closed.
Fixed some minor bugs related to groups. I implemented basic color capabilities. Extended ColorDecode.java to handle xy and ct values. Implemented the call to replaceColorData in various homes (command, http, tcp, udp). Additional to color.r, color.g, color.b which return the color value in 0-255 there is also a value replacement "color.milight". The usage for that is as follows: udp://ip:port/0x${color.milight:x} where x is a number between 0 and 4 (0 all groups, 1-4 specific group). The group is neccessary in case the color turns out to be white. The correct group on must of course be sent before that udp packet. Note that milight can only use 255 colors and white is handled completely separate for the rgbw strips, so setting temperature via ct with milight does something but not really the desired result.
So the groups are now somewhat usable with an Amazon Echo. This is a bit of a workaround: The group gets presented to the Echo as another fake light. For that to work you must manually enable this feature for every room by adding "exposeAsLight":"192.168.0.30" to the room in group.db (restart ha-bridge afterwards). Use the ip-address of your echo. No need to do that for other devices, because these can handle rooms directly. The fake light for the group will only be shown/usable to the specified ip-addresses.
Room and basic color support, group additions and some minor stuff
Fix table in README.md
"Extended color light" isn't used anymore for all devices without thinking about it. It will now automatically differentiate between Color and Dimmable light by the following logic: 1. If it's Philips Hue passthru look at the state: if it contains the attribute "colormode" it's a Extended color light, otherwise it's a Dimmable light. 2. If it's no passthru it's a dimmable light if the colorUrl has no content. I didn't use On/Off light because i disovered that a) the hue app treats these exactly the same as dimmable light, you can still "change the brightness" and b) the amazon echo doesn't find these lights without the skill I also enhanced the filter options in the web ui. You have a textbox "Show devices visible to". You can fill in an ip-address and there will only be devices displayed that a) have the ip address in the requesterFilter or b) don't filter by requester. If you tick the checkbox "Must contain filter" option b isn't used. This means also if you check the box with no ip address in the textbox only devices without request filter will be shown. Also there is a filter by device type. All these 3 filter options will be remembered as long as the browser tab is closed.
Light type detection and filter for device list
warnings, removed order by name.
…vice statuses. Dont know how to do that.
issues. Updated upnp multicast to use one socket. Updated http Handler code to check for null on conn.
# Conflicts: # src/main/resources/public/scripts/app.js
strict setting (only from command line) Working on http pool
handling for spark initialization errors.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#749 No Login Feedback - No Password reset enhancement question
#717 Having to often repeat command enhancement question
#768 Hue Items error with ha-bridge-5.0.0rc2 bug question
#782 getting server error 500 out of nowhere enhancement question
#779 Allow custom hue-bridgeid? enhancement question
#450 Unable to edit on ipad enhancement question
#336 Fibaro support enhancement help wanted
#560 How to run Fibaro Scene in HA-Bridge? enhancement question
#737 2 HA-Bridge instances: UpnpListener encountered an error sending upnp notify packet. IP: 239.255.255.250 with message: Operation not permitted enhancement question
#761 Philips Hue app update - bridge update required enhancement question
#747 Issue with MQTT messages - intermittent success enhancement question
#722 Long time no operation causes failure of the first operation of home assistant devices enhancement question
#671 action taking place only on the second time i ask to do it enhancement question
#381 Resize Target Item Field enhancement question
#705 Item Delete Button deletes multiple items bug question
#327 Add Color or Raw Info enhancement question
#704 Rename "Clear Device" to "Clear" enhancement
#713 Room and basic color (especially limitless/milight) support enhancement