Skip to content
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 33 commits into from
Nov 22, 2017
Merged

Features for 5.0 #796

merged 33 commits into from
Nov 22, 2017

Conversation

bwssytems
Copy link
Owner

#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

MakeSimpleOrg and others added 30 commits May 4, 2017 03:19
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
"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
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
@bwssytems bwssytems changed the title Featuresf for5.0 Features for 5.0 Nov 22, 2017
@bwssytems bwssytems merged commit 71c4447 into master Nov 22, 2017
@bwssytems bwssytems deleted the FeaturesfFor5.0 branch November 27, 2017 22:24
@audiofreak9 audiofreak9 restored the FeaturesfFor5.0 branch August 6, 2018 23:03
@bwssytems bwssytems deleted the FeaturesfFor5.0 branch November 14, 2018 15:12
@audiofreak9 audiofreak9 restored the FeaturesfFor5.0 branch July 25, 2019 22:32
@bwssytems bwssytems deleted the FeaturesfFor5.0 branch August 7, 2019 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants