* Correct things definition in README.md
Add example of bridge and link thing to bridge.
---------
Signed-off-by: aliijm <44173819+aliijm@users.noreply.github.com>
* [mqtt.espmilighthub] use system channel types for color temp and brightness
closes#10096
also add absolute color temp channel. and remove level channel when we
already have a color channel (you can link a DimmerItem to a color
channel if your light doesn't happen to have color or you want direct
control of brightness only for some reason)
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* [mqtt.homeassistant] add support for Update component
This component is fairly non-standard - it doesn't add any channels.
Instead, it provides several properties to the thing, and also adds
a thing configuration allowing you to trigger an OTA update on a
Home Assistant device from MainUI.
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* [mybmw] fix not working binding due to API update
to make it work the code has been refactored and due to API changes some
improvements could be made. These include:
- (improvement) fingerprint generation: You can
take a look at the README how to create a
fingerprint more conveniently.
- (change) changed channel: charge-info has been
renamed to charge-remaining
- (improvement) added channels:
estimated-fuel-l-100km and estimated-fuel-mpg
which calculates the estimated fuel consumption
based on the range and remaining fuel liters
- unfortunately such a calculation is not available
for EVs as there is no information about the capacity of the battery.
- (improvement) added channel last-fetched:
the last-updated timestamp is showing by when
the last update of the vehicle happened. As right
now you can not see from the channels if a thing
is offline due to connection issues, you can check
now if last-fetched is more than 5 minutes ago to identify an issue
- (fixed) remote command typos fixed
Fixes#14065
Also-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Martin Grassl <martin.grassl@digital-filestore.de>
* Add support for garage door transition status
Homekit requires a status for the garage door of OPEN, CLOSED, CLOSING,
OPENING. In order to report that, we must provide state transition
information. State transition information is inferred when the garage
door state is changed. For door_transition_time_seconds since the last
open/close command was issued, the binding reports the state as either
"closing" or "opening".
---------
Signed-off-by: Tim Harper <timcharper@gmail.com>
Co-authored-by: Laurent Garnier <lg.hc@free.fr>
* [knx] New modifier to set mainGA write-only
Co-authored-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* [mqtt.homeassistant] improve Cover support
* Add support for covers that report position
* Handle when command and state values for OPEN/CLOSE/STOP
differ (as they do by default)
* Expose the full cover state, since it can have tell you
if the cover is moving or not
* Handle covers that have a position only, but not a state
* add constants to clarify up/down values
* Be sure to parse percents from strings in RollshutterValue
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* [boschshc] Add support for motion detector illuminance sensor
- add channel and corresponding channel type
- add update description
- add state model
- implement service and handler
- add documentation
- add unit test
---------
Signed-off-by: David Pace <dev@davidpace.de>
* [pilight] Add option to disable background discovery for a given pilight bridge thing
Previously the background discovery updated periodically all channels of all
devices regardless whether they have sent an update or not. This behavior
makes it impossible to decide whether a device is still alive by observing
channel updates sent by a device itself. Especially for devices running on
battery, it is important to know, if it still sends updates.
Create ExecutorService during initialize
---------
Signed-off-by: Stefan Roellin <stefan@roellin-baumann.ch>
* [mqtt] Interpet incoming NaN as UNDEF for NumberValues
Since DecimalType and QuantityType don't support NaN, but
when you're linking to a topic that the device is using
floating point, NaN might happen.
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* Fix IOOB exception with missing DPT in number channels
Also improves test messages for DPT unit tests
Signed-off-by: Jan N. Klug <github@klug.nrw>
Co-authored-by: Holger Friedrich <mail@holger-friedrich.de>
* Use of actions.get instead of getActions
Adopt doc to newest default JS environment regarding calling mail actions via actions.get
Signed-off-by: Siegmar Immel <36704892+SiggiFR@users.noreply.github.com>
* [mail] Adding Javascript examples in documentation
Because function name has changed to get actions defined within the mail binding, the examples have been extended by a tab for JavaScript code.
* Update bundles/org.openhab.binding.mail/README.md
Co-authored-by: J-N-K <github@klug.nrw>
Signed-off-by: Siegmar Immel <36704892+SiggiFR@users.noreply.github.com>
---------
Signed-off-by: Siegmar Immel <36704892+SiggiFR@users.noreply.github.com>
Co-authored-by: J-N-K <github@klug.nrw>
A new thing parameter to define the API version has been added.
Its default value is 4 for backward compatibility even if this version
is now deprecated. The documentation explains what to do to switch from
a version to another.
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* Implements #15949: Plus Dimmer 10v added
* category DimmableLight does not exist; README updated
---------
Signed-off-by: Markus Michels <markus7017@gmail.com>
* [mqtt.homeassistant] interpret a dimmable light as OFF properly from zigbee2mqtt
zigbee2mqtt can send a brightness of say 99, with a state of OFF, when a bulb is
off. make sure if state is sent, it overrides all other inferences
* handle brightness but not color bulbs
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
I.e. Button, Scene, and Binary Sensors.
Also ensure we set up the CommandDescription, since some value types mights use it.
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* [boschshc] Update active profile of intrusion detection system
Fixes an issue that caused the active configuration profile of the
intrusion detection system not to be updated.
closes#15848
* [boschshc] add channel to control state service registration
Signed-off-by: David Pace <dev@davidpace.de>
* New translations openwebnet.properties (Italian)
* New translations jsscripting.properties (Danish)
* New translations hdpowerview.properties (Danish)
* [mqtt.homeassistant] Add support for Button component
* use a StringValue instead of an OnOffValue
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* feat(energy): get current day and current month totalizers
* fixed unit (Power:Energy), refreshPeriod config and scheduler
---------
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Co-authored-by: Conte Andrea <andrea@conte.com>
The page was missing information in some places (e.g. some supported
modules were not listed at all,) and some outdated information in
others. Some examples were malformed, and some wording didn’t flow too
well. The section on Channels is still pretty iffy, but I left this as
an exercise for a future me or somebody else :)
Signed-off-by: Simonas Kazlauskas <openhab@kazlauskas.me>
Follow on to #15427
ring-mqtt sends `"name": ""`, not `"name": null` or simply omitting it,
so be sure to handle that way as well
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* [mqtt.homeassistant] handle null component name
channels from such components will not have a group. this is
now done by zigbee2mqtt for the "default" component of a device,
such as the light. HASS encourages this as of release 2023.8
Signed-off-by: Cody Cutrer <cody@cutrer.us>
* [mqtt.homeassistant] support color temp on JSON schema lights
also adds a color_mode channel if color temp is possible, so you can
know how the bulb is behaving
* put color mode channel construction into buildChannels()
---------
Signed-off-by: Cody Cutrer <cody@cutrer.us>
Depending on device configuration and used central [1], HM devices may
indicate long press repetition either by a single PRESS_CONT event or by
a PRESS_CONT + PRESS_LONG combination. In the latter case, make sure to
not generate a LONG_REPEATED trigger channel event for both PRESS_CONT
and PRESS_LONG, but instead keep LONG_REPEATED generation to the
PRESS_CONT handling.
[1] I'm not sure what a real CCU is doing, but for Homegear, a
configured long press timeout of less than 1s generates only
PRESS_CONT, while a timeout of more than 1s generates
PRESS_CONT + PRESS_LONG ... see [2].
[2] https://github.com/Homegear/Homegear-HomeMaticBidCoS/blob/master/src/BidCoSPeer.cpp#L1711-L1716
Signed-off-by: Danny Baumann <dannybaumann@web.de>
* Fix resource leak when discovery handling failed and NPE when a IPv6
address is reported.
* remove callApi(request/innerRequest from Shelly1HttpApi, which changes
to callApi/httpRequest in ShellyHttpCLient.
Signed-off-by: Markus Michels <markus7017@gmail.com>
* New translations sonos.properties (French)
* New translations influxdb.properties (French)
* New translations netatmo.properties (French)
* New translations jpa.properties (French)
* New translations chatgpt.properties (French)
* [influxdb] Improve connection handling
Especially for InfluxDB2 the connection check was not properly implemented. It only checked if a connections was ever successfully established. Since we removed the full crash when a write error occured, this lead to a situation where a broken connection was not detected. A ping is now implemented and also a failed write results in a disconnect.
---------
Signed-off-by: Jan N. Klug <github@klug.nrw>
* [fineoffsetweatherstation] Improve tracing
* [fineoffsetweatherstation] Fix wrong handling temperature reading for of WH34
Signed-off-by: Andreas Berger <andreas@berger-freelancer.com>
* Added a few new channels:
- cleaning the mop
- check if mop drying is enabled
- remaining time for mop drying
Signed-off-by: David Kumar <github@truidix.de>
Some devices report "Window covering controller" instead of "Window covering device". They are controlled in the same way.
Signed-off-by: Jan N. Klug <github@klug.nrw>
Also adapt the documentation and drop the batteryFeedIn in the documentation
which is not part of the binding.
Fix#15365
Signed-off-by: Tim Lochmüller <tim@fruit-lab.de>
If there were multiple network interfaces and the DatagramSocket.receive
timed out an exception was thrown and the remaining network interfaces
were not considered anymore.
Signed-off-by: Stefan Roellin <stefan@roellin-baumann.ch>
* [GPIO] Update the GPIO binding to fix issues and provide new functionality.
* Add the ability to recover from network disconnects to pigpiod.
* Provide actions to what the binding does on pigpiod connect/disconnect/reconnect.
* Provide the ability to pulse outputs in a one-shot/momentary fashion.
* Provide edge level configuration for gpio outputs.
* Fix automated style checks.
* Attempt to squash jenkins build warnings/errors.
* Correct Null annotations and adjust log levels in certain areas.
* Fix bracing per checkstyle review.
* Normalize gpiod/pigpiod to pigpiod. openhab/openHAB normalized to OpenHAB.
* Fix a copy/paste error. Output channels should not be referred as input. Attempt to clarify plurals.
* Convert strings to defined constants.
* Convert pulse command strings to binding constants.
* Java17 instanceof pattern matching.
* Nit, fix missed pulse command string to binding constant.
* Add missing quotes in demo.things file definition.
Workaround #11039Fixes#11038Fixes#13376
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
* Add channels for last motion/temperature sensor update (API v2)
* Add channel for last light level sensor update (API v2)
* Add channel for last rotary steps update (API v2)
* Add channel for last button update (API v2)
Resolves#15546
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Add support for Expiring Messages
* Add action variants with TTL parameter
Resolves#15288
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* make VirtualDatapoint belonging ContactSensor for more devices available
---------
Signed-off-by: niclas18 <87126599+niclas18@users.noreply.github.com>
* New translations energidataservice.properties (Italian)
* New translations energidataservice.properties (Danish)
* New translations sonos.properties (Italian)
* [ipcamera] Handle empty snapshotUrls and XML encoded characters
* use unescape method from StringUtils
---------
Signed-off-by: Kai Kreuzer <kai@openhab.org>
* Rename channel powerConsumption to energyConsumption and set display unit to litres for waterConsumption
---------
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Adds power and powerState. Updates refresh to allow 1 second refresh.
* Add activeAppName channel
* Add Player channel for transport control
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>