Comments (8)
Ok,
I found the issue. In the original binding, the duplicate key simply overwrote the first key. In the new version I am using a stream to generate the Map, which throws the "duplicate key" exception.
Fortunately the toMap() function has a method for dealing with duplicate keys (which I had not implemented), so it's an easy fix.
from openhab-addons.
@NickWaterton - FYI, it seems I'm experiencing a regression here when trying to switch source on a legacy TV.
from openhab-addons.
It looks like you may have two inputs on the TV both called HDMI-CEC. Can you list the inputs on your TV (on the screen), take a picture and post it here?
The binding queries the source list, and ID's and fills a variable Map<String, String>
- and it looks like you have a duplicate source name. This is the same as the old binding though, so not sure what is different.
Thanks,
from openhab-addons.
It looks like you may have two inputs on the TV both called HDMI-CEC. Can you list the inputs on your TV (on the screen), take a picture and post it here?
Yes, indeed, you are right:
from openhab-addons.
Fortunately I have one of these legacy TV's as well, with one HDMI-CEC device. I will have to think about how to deal with this situation.
from openhab-addons.
Can you try this jar if it fixes the issue, I'll issue a PR.
Thanks.
from openhab-addons.
Can you try this jar if it fixes the issue, I'll issue a PR.
Sure, thanks! Perhaps you can already create the PR and add label "additional testing preferred"? I can then backport the fix and test it on my production system in the evening - and perform a review as well?
from openhab-addons.
Can you try this jar if it fixes the issue, I'll issue a PR.
Sure, thanks! Perhaps you can already create the PR and add label "additional testing preferred"? I can then backport the fix and test it on my production system in the evening - and perform a review as well?
PR #16787 created, I don't seem to be able to add labels though.
from openhab-addons.
Related Issues (20)
- [Homekit] Accessory of type Lighting must have following characteristics [OnState]. Found only [] HOT 3
- [FreeAtHome] Channel for Blind position is missing HOT 1
- [FreeAtHome] Channel error on double roller shutter rocker: BUSCH-JAEGER 6213/2.1 HOT 1
- [FreeAtHome] 4 channel binary input - the binding only detects two of the four channels. HOT 1
- [basicprofiles] Add divide profile HOT 5
- [emotiva] Source channels are not listing items recevied from device
- [rollershutterposition] - Add optional stop at limits HOT 1
- [goecharger] Awp (eco-mode) parameter for go-e charger
- [AndroidTV] Error message every 10 seconds Error occurred during handling of command for TV Channels: Cannot deserialize value of type `int` from String HOT 2
- [homematic] NPE on startup HOT 7
- [mqtt.homeassistant] Bring Jinja template processing into compliance with Home Assistant Docs
- [mqtt.homeassistant] `availability` doesn't have to be a list HOT 11
- [fineoffsetweatherstation] Rule DSL rule not triggered HOT 1
- [http] RateLimitedHttpClientTest unstable HOT 1
- [icalendar] Add User-Agent property for iCalendar binding HOT 5
- [evcc] Command to start charging - mode "now" doesn't seem to work HOT 2
- [network] Incorrect Timestamp Update After Restart in Network Binding
- [freecurrency] Is this working at all? HOT 1
- [shelly] Wall Display Authentication not working as of 4.2.1 HOT 4
- [jsscripting] Debugging Support HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-addons.