forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 30
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
My sensors #3
Merged
Merged
My sensors #3
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
Conflicts: addons/binding/org.openhab.binding.mysensors/ESH-INF/thing/thing-types.xml
tobof
added a commit
that referenced
this pull request
Dec 22, 2016
* Skeleton creation * Merged old code into new plugin Code merged and adjustments made to discovery process. UNTESTED!! * Added missing files from last commit * Tested against current OH2 beta: working! * added baudrate configurable * Added script for testing purpose and missing pom.xml * Changed thing description for serial gateway to support different baud rates. * Fixed documentation regarding baud rate of the serial gateway * esh-inf added parameter and serial closing to allow binding restart correctly * removed debug log before initialize * thread managing improved * little fix allows correct start and stop for binding * Added missing STOP for item "Rollershutter" Moved event handling from handleUpdate() to handleCommand(). * Doc fixed * requestAck feature added Currently it is not possible to automatically revert to the old state. * writer thread implementation changed and serial port class changed to remove the annoying exception on reading * adding back the message to queue if is not time to sent it again * reader thread moved in abstract class as the writer * tryying to move to SerialPort, no success... * Minor fix in visibilty of overridden method * Code cleanup and fix for sendDelay - removed superflous debug messages - removed superflous variables, methods - fixed missing implementation of sendDelay * Error handling on disconnect of ethernet gw The binding status is updated to OFFLINE and the threads for reader and writer are beeing stopped. Works for ethernet gw only. * Added jar and fixed docs * requestAck incoming ACKs are now acknoledged and the message is removed from the queue * requestAck: revert item status if no ack is received If no ACK is received from the node, the binding will try to revert the status of the item in OH2 to its old value. Only works if a status is known. (After restart of OH2 no status is known). Tested with light (STATUS) and dimmer (percent). * ensure gateway was started correctly * event driven i_version handing * removed debug messages * disconnect on connection fail now child id 255 can respond to i_version * Added S_HVAC constant * HVAC Thermostat added Temperature channel implemented * Added channels to HVAC "hvac-flow-state-channel" "hvac-flow-mode-channel" "hvac-setPoint-heat-channel" "hvac-setPoint-cool-channel" "hvac-speed-channel" "var1 to var5-channel" * Added CHANNEL_HVAC_FLOW_MODE and CHANNEL_HVAC_FLOW_STATE to MySensorHandler * Added support for return messages to sensor on V_VAR1 to V_VAR5 Changed V_VAR2 to number. * requestAck feature redesigned. Reader/Writer are now in sync. * Removed debug messages. Added updated jar of the binding. * Requesting of thing/item values supported + minor fix OH2 binding now answers requests for item status. minor fix - battery ch. added to hvacThermostat * Added jar build * Delay before I_VERSION check for SerialGW, new jar file * Compatibility fixes - Implemented a method to register more than one serial port (two or more serial gw) due to a lack/bug in the used nrserialjava - Longer timeout for I_VERSION check (5s) * just a little restyle * I_TIME and I_CONFIG response implemented (not tested) * I_VERSION skip now allowed * Binding jar refresh * fix for I_TIME/I_CONFIG, not requesting that nodeId = 0 * updated testscript.sh * Code review - Added legal information to .java files - Removed references, files and comments that are not needed * Fixed value requests from nodes for sensors with multiple subtypes and added correct deregistration to prevent NPEs on shutdown. * Added WaterMeter Sensor * pom.xml refresh * New jar-Release after merge * Fixed issue with serial Reader Fixed issue with Exception while trying to read zero data from serial * New jar after merge with master * Added the customSensor, containing the channels for V_VARx - can be used as a helper to send values to the nodes from Openhab Signed-off-by: Juergen Messmer <meju@chello.at> * Fixed mistake in documentation There was an error in the creation of the bridge. This results in Items not updating although the bridge itself seems fine in openhab2 * Fixed issue with high CPU usage * added possibility to not revert state if no ack received * Changed type of vars for "reverted" para from int to boolean * removed debug logging of messages in queues * Reduced sleep time in reader * Added Pressure channel to thing barometer Pressure channel was missing in barometer thing definition. * New jar * Packaged new jar! * datetime implemented in channel * last update fixes * last update fixes #2 * Fixed bug that sends status of things on startup OH2 core now calls "handleCommand()" on startup with command == REFRESH. REFRESH is ignored now and the bug fixed. * Removed constructor task, moved to initialize * Debug line added * minor bug fixing and little refactor * minor bug fixing #2 * minor bug fixing #3 * minor bug fixing #4 * minor bug fixing #5 * fixed log level for some logging * fixed log level for some logging * disconnection fixes * Legal header adjusted, Current jar attached Signed-off-by: Tim Oberföll <oberfoell@web.de> (github: github_handle) * started working on network watchdog * Update MySensorsBindingConstants.java * Update MySensorsBindingConstants.java * working on network sanity check * Update constants to comply with OH2 Added following things: THING_TYPE_LOCK THING_TYPE_LEVEL THING_TYPE_RGB_LIGHT THING_TYPE_RGBW_LIGHT THING_TYPE_RGBW_LIGHT THING_TYPE_PH_METER * Update MySensorsBindingConstants.java * Update MySensorsBindingConstants.java * Update MySensorsBindingConstants.java * Updates to comply with My Sensors 2.0 * Update MySensorsDiscoveryService.java * Update MySensorsDiscoveryService.java * Update MySensorsBindingConstants.java * Update thing-types.xml * Update thing-types.xml * Update MySensorsBindingConstants.java * working on network sanity check #2 * Added missing constants, removed typos * resolved dependecies for bridge connection * Generated new jar * new feature and refactoring testing #1 * new feature and refactoring testing #1 * new feature and refactoring testing #2 * Added expert mode Expert mode allows rule based message parsing and sending. * [PARTIAL] start joining connector and connection * connection and connector merged * invalidating requestDisconnection flag * connection tested and debugged * [FIX] adding listener before connection * cache factory implemented, now managing only given_ids one * windows disconnect fix and cache minor fix * new packaging and structure initial restyle * some changes * moving to new version of ESM framework * bridgeHandelerInitialized (deprecated) has changed to bridgeStatusChanged * cache usage changed after refactoring * [FIX] java.util.ConcurrentModificationException * final fixing, now testing * utility message type moved into message class * build.xml file removed * new jar * [FIX] asList cause UnsupportedOperationException * [FIX] startup check not work on connection retry after disconnection * [FIX] initialize thing to offline, cause problem if left uninitialized * [WIP] V_TEXT added Thing added that supports sending and receiving V_TEXT. * [WIP] Added V_IR_SEND & V_IR_RECEIVE Both things work in both directions (to and from MySensors network) * fixing mvn strange behaviour * Created new jar && Modified Testscript * Fixed bug that prevents answering of internal messages If skipStartupCheck is set to true, there was no answer to I_CONFIG, I_TIME and ACK was not working. * [WiP] Refactor ThingHandler Cleaning up code for incoming messages. * Fixing issue in MySensorsBridgeConnection which detached the EventListener - EventListener now listening independant from skipStartupCheck - Removed <context> from things eth-gateway and ser-gateway to allow configuration of advanced options in PaperUI * Fixed recent issue related to updates on Smarthome API fixes #40
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.
After this I'll try to solve the CPU usage bug on writer thread :D