--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/expect
set timeout 20
set dencmd [lindex $argv 0]
log_user 0
spawn telnet 192.168.17.11
expect "Trying"
expect {
timeout {
send_user "\rTimeout waiting for Denon response.\r"
send_user "$expect_out(buffer)\r"
exit
}
"Connection refused" {
send_user "UNABLE\n"
exit
}
"BridgeCo AG Telnet server\r\n"
}
send "$dencmd\r"
expect "$dencmd\r\n"
expect "*\r"
send_user "$expect_out(buffer)\n"
exit
--
Text item=DenonInput label="Quelle: [MAP(denon.map):%s]“
CD=DAB
10:36:04.088 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'denon.items'
10:36:14.597 INFO o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'denon.rules'
10:36:17.763 DEBUG o.o.b.d.i.DenonActivator[:34]- Denon binding has been started.
10:36:17.804 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonPower bound to property PW
10:36:17.807 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonMainZone bound to property ZM
10:36:17.810 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonVolume bound to property MV
10:36:17.813 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonMute bound to property MU
10:36:17.816 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonInput bound to property INPUT
10:36:17.819 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x2000 item DenonInputSATCBL bound to property SISAT/CBL
10:36:17.821 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Power bound to property PW
10:36:17.826 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_MainZone bound to property ZM
10:36:17.828 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Volume bound to property MV
10:36:17.830 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Mute bound to property MU
10:36:17.832 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_Input bound to property INPUT
10:36:17.834 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputCD bound to property SICD
10:36:17.836 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputTuner bound to property SITUNER
10:36:17.838 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputDVD bound to property SIDVD
10:36:17.840 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputSATCBL bound to property SISAT/CBL
10:36:17.843 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputMplay bound to property SIMPLAY
10:36:17.845 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputGame bound to property SIGAME
10:36:17.847 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InputAux2 bound to property SIAUX2
10:36:17.849 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwo bound to property Z2
10:36:17.851 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoVolume bound to property Z2ZV
10:36:17.853 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoMute bound to property Z2MU
10:36:17.855 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInput bound to property Z2INPUT
10:36:17.858 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputCD bound to property Z2SICD
10:36:17.860 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputTuner bound to property Z2SITUNER
10:36:17.862 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputDVD bound to property Z2SIDVD
10:36:17.864 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputSATCBL bound to property Z2SISAT/CBL
10:36:17.866 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputMplay bound to property Z2SIMPLAY
10:36:17.868 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputGame bound to property Z2SIGAME
10:36:17.870 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_ZoneTwoInputAux2 bound to property Z2SIAUX2
10:36:17.872 INFO o.o.b.d.i.DenonGenericBindingProvider[:74]- denon:x4000 item Denon_x4_InternetRadio bound to property IRADIO
10:36:17.884 DEBUG o.o.b.d.internal.DenonBinding[:71]- Denon all bindings changed
10:36:17.886 DEBUG o.o.b.d.internal.DenonBinding[:42]- Denon binding actived
10:36:19.654 DEBUG o.o.b.d.internal.DenonBinding[:107]- Denon binding updated
10:36:19.660 DEBUG o.o.b.d.internal.DenonBinding[:136]- Denon receiver configured at 192.168.1.104
10:36:20.010 DEBUG o.o.b.d.internal.DenonListener[:27]- Denon listener created
10:36:20.035 DEBUG o.o.b.d.i.DenonConnector[:268]- Refreshing Denon status
10:36:20.035 DEBUG o.o.b.d.internal.DenonListener[:70]- Connecting to 192.168.1.104
10:36:20.037 DEBUG o.o.b.d.i.DenonConnector[:281]- Refreshing Main, url: http://192.168.1.104:80/goform/formMainZone_MainZoneXml.xml
10:36:20.046 DEBUG o.o.b.d.internal.DenonListener[:82]- Denon telnet client connected to 192.168.1.104
10:36:20.148 DEBUG o.o.b.d.i.DenonConnector[:295]- Refreshing Main Zone, url: http://192.168.1.104:80/goform/formMainZone_MainZoneXmlStatus.xml
10:36:20.181 DEBUG o.o.b.d.i.DenonConnector[:323]- Refreshing Zone 2, url: http://192.168.1.104:80/goform//formZone2_Zone2XmlStatus.xml
10:36:20.218 DEBUG o.o.b.d.i.DenonConnector[:323]- Refreshing Zone 3, url: http://192.168.1.104:80/goform//formZone3_Zone3XmlStatus.xml
10:36:20.248 DEBUG o.o.b.d.i.DenonConnector[:323]- Refreshing Zone 4, url: http://192.168.1.104:80/goform//formZone4_Zone4XmlStatus.xml
...
2015-01-02 12:51:38.153 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonPower bound to property PW
2015-01-02 12:51:38.268 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonMainZone bound to property ZM
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonVolume bound to property MV
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonMute bound to property MU
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInput bound to property INPUT
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputCD bound to property SICD
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputTuner bound to property SITUNER
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputDVD bound to property SIDVD
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputBluray bound to property SIBD
2015-01-02 12:51:38.269 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputTV bound to property SITV
2015-01-02 12:51:38.270 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputSATCBL bound to property SISAT/CBL
2015-01-02 12:51:38.270 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputMplay bound to property SIMPLAY
2015-01-02 12:51:38.271 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputGame bound to property SIGAME
2015-01-02 12:51:38.272 [INFO ] [.i.DenonGenericBindingProvider] - denon:avr3311 item DenonInputAux1 bound to property SIAUX1
Any idea if this is correct, and in case how to clean?
Another question is regarding volume … is it possible to have the value in dB and not in %? Any suggestion?
Finally, a strange behaviour … after installed the binding, any other app related to my Denon AVR stopped working :) … I don’t know why. Only the web connection is still working properly.
Thanks
Andrea
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/9d1d2332-ed03-4e2a-b74b-a942a78930d7%40googlegroups.com.
Hi,
I had the same problem with the app.
I guess the receiver can run one tcp connection at a time only.
Regards
maximilian
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/CANbOKYdmrSMJo1Yj%2BEW%3DFoyH2c-VdLqiRau9fqxz-Li3Luo-GA%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/CANbOKYdB_Aj6kSsLXmbSMeDKf31uvY%3D%3DdYTboBiJQ1OjnrS7YA%40mail.gmail.com.
Number DenonVolumeDB "Volume [%.1f db]" <denon> (Denon)
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/9d1d2332-ed03-4e2a-b74b-a942a78930d7%40googlegroups.com.
rule "Dune Living"
when
Item Dune_Living received command
then
if(receivedCommand==ON) {
// switch on AVR, set input to BD, switch on Dune HD
sendCommand(DenonPower, ON)
sendCommand(DenonInputBluray, ON)
sendHttpGetRequest("http://192.168.17.10/cgi-bin/do?cmd=ir_code&ir_code=A05FBF00")
} else if(receivedCommand==OFF) {
// turn off Dune HD and AVR
sendHttpGetRequest("http://192.168.17.10/cgi-bin/do?cmd=ir_code&ir_code=A15EBF00")
sendCommand(DenonPower, OFF)
}
end
/* Denon binding */
Switch DenonPower "Power" (Denon) {denon="avr3311#PW"}
Switch DenonMainZone "Main Zone" (Denon) {denon="avr3311#ZM"}
Dimmer DenonVolume "Volume [%.1f]" (Denon) {denon="avr3311#MV"}
Switch DenonMute "Mute" (Denon) {denon="avr3311#MU"}
String DenonInput "Input [%s]" (Denon) {denon="avr3311#INPUT"}
Switch DenonInputCD "Input CD" (Denon) {denon="avr3311#SICD"}
Switch DenonInputTuner "Input Tuner" (Denon) {denon="avr3311#SITUNER"}
Switch DenonInputDVD "Input DVD" (Denon) {denon="avr3311#SIDVD"}
Switch DenonInputDVR "Input DVR" (Denon) {denon="avr3311#SIDVR"}
Switch DenonInputBluray "Input Bluray" (Denon) {denon="avr3311#SIBD"}
Switch DenonInputTV "Input TV" (Denon) {denon="avr3311#SITV"}
Switch DenonInputSATCBL "Input SAT/CBL" (Denon) {denon="avr3311#SISAT/CBL"}
Switch DenonInputMplay "Input Mediaplayer" (Denon) {denon="avr3311#SIMPLAY"}
Switch DenonInputGame "Input Game" (Denon) {denon="avr3311#SIGAME"}
Switch DenonInputAux1 "Input Aux1" (Denon) {denon="avr3311#SIAUX1"}
Switch DenonMenu "" (Denon) {denon="avr3311#MNMEN"}
Switch DenonRCUp "" (Denon) {denon="avr3311#MNCUP"}
Switch DenonRCDown "" (Denon) {denon="avr3311#MNCDN"}
Switch DenonRCLeft "" (Denon) {denon="avr3311#MNCLT"}
Switch DenonRCRight "" (Denon) {denon="avr3311#MNCRT"}
Switch DenonRCEnter "" (Denon) {denon="avr3311#MNENT"}
Switch DenonRCReturn "" (Denon) {denon="avr3311#MNRTN"}
Switch Denon_RC1_Living "Menu" (Denon)
Number Denon_RC2_Living "" (Denon)
Number Denon_RC3_Living "" (Denon)
rule "Denon Living Room Remote Control line 1"
when
Item Denon_RC1_Living received command
then
if(receivedCommand==ON)
{
sendCommand(DenonMenu, ON)
}
if(receivedCommand==OFF)
{
sendCommand(DenonRCReturn, ON)
sendCommand(DenonRCReturn, ON)
sendCommand(DenonRCReturn, ON)
sendCommand(DenonRCReturn, ON)
sendCommand(DenonRCReturn, ON)
}
end
rule "Denon Living Room Remote Control line 2"
when
Item Denon_RC2_Living received update
then
if(Denon_RC2_Living.state == 1)
{
sendCommand(DenonRCUp, ON)
}
if(Denon_RC2_Living.state == 2)
{
sendCommand(DenonRCDown, ON)
}
if(Denon_RC2_Living.state == 3)
{
sendCommand(DenonRCLeft, ON)
}
if(Denon_RC2_Living.state == 4)
{
sendCommand(DenonRCRight, ON)
}
end
rule "Denon Living Room Remote Control line 3"
when
Item Denon_RC3_Living received update
then
if(Denon_RC3_Living.state == 1)
{
sendCommand(DenonRCEnter, ON)
}
if(Denon_RC3_Living.state == 2)
{
sendCommand(DenonRCReturn, ON)
}
end
Text label="AVR 3311" icon="denon2"{
Switch item=DenonPower icon="control_standby"
Switch item=Denon_RC1_Living
Switch item=Denon_RC2_Living icon="" mappings=[1=" Up ", 2=Down, 3=Left, 4=Right]
Switch item=Denon_RC3_Living icon="" mappings=[1=Select, 2=Return]
Selection label="Input" item=DenonInput icon="denon3" mappings=[CD="CD", TUNER="Tuner", DVD="DVD", BD="Bluray", DVR="DVR", TV="TV", "SAT/CBL"="SAT/CBL", MPLAY="Mediaplayer", GAME="Game", AUX1="Aux1"]
}
rule "Denon Living Room Remote Control line 2"
when
Item Denon_RC2_Living received command
then
Switch (receivedCommand)
{
case 1 : sendCommand(DenonRCUp, ON)
case 2 : sendCommand(DenonRCDown, ON)
case 3 : sendCommand(DenonRCLeft, ON)
} case 4 : sendCommand(DenonRCRight, ON)
end
I haven't come across the need to use multiple commands per case but calling a script would be an option I guess.
kind regards
maximilian
2015-01-06 11:37:08.403 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule 'Denon Living Room Remote Control line 3': The name 'Switch(<XFeatureCallImplCustom>)' cannot be resolved to an item or type.
maybe something to be imported in my rules?
here what I have at the moment:
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
import org.openhab.core.transform.actions.Transformation
import java.util.regex.Pattern
import java.util.regex.Matcher
Thank you
Andrea
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/a7b245bf-5c6b-44c4-8c34-24fe16cd24bc%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/ed431413-7252-4328-864e-38a6ac38b516%40googlegroups.com.
Switch DenonSetupOn "Setup" {denon="avr2000#MNMEN ON"}
Switch DenonSetupOff "Exit setup" {denon="avr2000#MNMEN OFF"}
Regards,
Jeroen.
Switch DenonMenu "" (Denon) {denon="avr3311#MNMEN"}
Switch DenonSSMenu "" (Denon) {denon="avr3311#MNSRC”}
should be enough, like
Switch DenonPower "power" (Denon) {denon="avr3311#PW"}
Let me try with the suggested ones.
Andrea
Hi Andrea,How do you specify the items for these commands? They should look like this:
Switch DenonSetupOn "Setup" {denon="avr2000#MNMEN ON"}
Switch DenonSetupOff "Exit setup" {denon="avr2000#MNMEN OFF"}
Is there any info in openhab.log if you try to set these switches to ON? Before trying please set the loglevel to debug for this binding.
Regards,
Jeroen.
On Wednesday, January 7, 2015 7:25:46 AM UTC+1, Andrea Riela wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/9f3185e2-6692-44b7-82b5-38f1669d90d5%40googlegroups.com.
Hey,First version of the binding is ready. I've opened a pull request. First version can be downloaded here: org.openhab.binding.denon-1.7.0-SNAPSHOT.Here's the Wiki page describing the supported commands so far: Denon BindingBinding should be compatible with previous generation AVR receivers (AVR-X2000/X3000 etc) as well as the current (X2100W/X3100W). Let me know your findings!Regards,Jeroen.
DenonPower
DenonVolume
DenonMute
using persistence with rrd4j and strategy everyChange, restoreOnStartup
No luck, after restarting openHAB I'm missing the previous status.
Any suggestion?
Andrea
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/6e126195-b30d-479d-9845-5da42abe6299%40googlegroups.com.
Dimmer DenonVolume "volume [%.1f]" (Denon) {denon="avr3311#MV"}
Number DenonVolumedB "[%.1f dB]" (Denon, Persistence)
rule "DENON Volume to DB"
when
Item DenonVolume received update
then
var Number volumedB = (DenonVolume.state as DecimalType)-80
postUpdate(DenonVolumedB, volumedB)
end
rule "DENON DB to Volume"
when
Item DenonPower changed from OFF to ON or
System started
then
Thread::sleep(10000)
var Number volume = (DenonVolumedB.state as DecimalType)+80
sendCommand(DenonVolume, volume)
logInfo("Rule DENON DB to Volume", "completed");
end
Slider item=DenonVolume icon="audio_audio"
Text item=DenonVolumedB
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/CANbOKYdiDTMzh6mQB86V72EMABncvXYCx7abwJRaM2nNieASdQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/CAJo69DFnJ0VZ8f-n6Mn%3D3C0ugSufD7m2gYABd%2BWhoNWPch9MNw%40mail.gmail.com.
--
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/CANbOKYdNos291rKEhAAmSwrG%2BU3LhdoSMqY0htKg1uq462W%3Dzg%40mail.gmail.com.
--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/bSTEfSRt0RU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/5333c55e-750a-4a2d-b686-e0c26842908a%40googlegroups.com.
Hi folks,anyone working on a new binding for Denon AVR?ThanksAndrea
2015-05-16 09:02:23.601 [WARN ] [.denon.internal.DenonConnector] - Encoding error in get
javax.xml.bind.UnmarshalException: null
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:420) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:327) ~[na:1.7.0_79]
at org.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:547) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189) [bundleFile:na]
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:465) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:355) ~[na:1.7.0_79]
... 8 common frames omitted
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
... 19 common frames omitted
denon:avr3311.host=10.12.14.16
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/f76ffda8-aa42-4017-8ccd-cefdb35aac21%40googlegroups.com.
Greetings. I am attempting to give the new binding a try with a Marantz sr7005, which I understand to be close to a Denon 3311. I am also running OpenHAB2. I am running the current build of the binding.
I am receiving the following exception whether I have the mode set to telnet or http:
2015-05-16 09:02:23.601 [WARN ] [.denon.internal.DenonConnector] - Encoding error in get
javax.xml.bind.UnmarshalException: null
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:420) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:357) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:327) ~[na:1.7.0_79]
at org.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:547) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189) [bundleFile:na]
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:276) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.1.0.v20131021-1936.jar:na]
Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:647) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1048) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:483) ~[na:1.7.0_79]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller
...
commandline:
smarthome status DenonPower
Error: Item 'DenonPower' does not exist.
Hi Jeroen, you are correct. There are many variables here, but I thought I would give it a go. I am using OpenHAB2, and a Marantz :) I will let you know how testing goes after the next build.
[o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:00.408 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:00.409 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:00.410 [ERROR] [o.u.i.items.ItemUIRegistryImpl] - Cannot retrieve item DenonCommand for widget org.openhab.model.sitemap.Switch
2015-07-19 19:45:37.745 [WARN ] [.o.u.w.i.render.SwitchRenderer] - Cannot determine item type of 'DenonCommand'
org.openhab.core.items.ItemNotFoundException: Item 'DenonCommand' could not be found in the item registry
at org.openhab.core.internal.items.ItemRegistryImpl.getItem(ItemRegistryImpl.java:80) ~[na:na]
Switch MarantzZone2 "Backyard Audio" {denon="avr2000#Z2"}
I've set the host IP of my receiver in the openhab_default.cfg file and also put this into the .items file to test a command (power zone 2)...
<logger name="org.openhab.binding.denon" level="DEBUG" />
Then restart openHAB.
Regards,
Jeroen.
2015-07-28 21:13:51.515 [WARN ] [.denon.internal.DenonConnector] - Encoding error in get
javax.xml.bind.UnmarshalException: null
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:468) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:402) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:371) ~[na:1.8.0_06]
at org.openhab.binding.denon.internal.DenonConnector.getDocument(DenonConnector.java:549) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.setConfigProperties(DenonConnector.java:474) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.getInitialState(DenonConnector.java:189) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonConnector.connect(DenonConnector.java:147) [bundlefile:na]
at org.openhab.binding.denon.internal.DenonBinding.updated(DenonBinding.java:189) [bundlefile:na]
at org.eclipse.equinox.internal.cm.ManagedServiceTracker$1.run(ManagedServiceTracker.java:183) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]
at org.eclipse.equinox.internal.cm.SerializedTaskQueue$1.run(SerializedTaskQueue.java:36) [org.eclipse.equinox.cm_1.0.400.v20120522-1841.jar:na]
Caused by: com.sun.istack.internal.SAXParseException2: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:681) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:247) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:242) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:109) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1086) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:510) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:492) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:60) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleStartElement(StAXStreamConnector.java:231) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:165) ~[na:1.8.0_06]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:400) ~[na:1.8.0_06]
... 8 common frames omitted
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}device_Info>
... 19 common frames omitted
2015-07-28 21:13:51.520 [INFO ] [insteonplm.InsteonPLMActivator] - Insteon PLM binding has been started.
2015-07-28 21:13:51.728 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:135) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:13:51.864 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:132) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:13:52.615 [WARN ] [.denon.internal.DenonConnector] - Encoding error in post
2015-07-28 21:15:17.744 [DEBUG] [.denon.internal.DenonConnector] - Command: NS, value: E0Now Playing
2015-07-28 21:15:17.715 [ERROR] [.service.AbstractActiveService] - Error while executing background thread HTTP Refresh Service
java.lang.ClassCastException: org.openhab.binding.http.internal.HttpGenericBindingProvider cannot be cast to org.openhab.binding.http.HttpBindingProvider
at org.openhab.binding.http.internal.HttpBinding.execute(HttpBinding.java:132) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:15:17.755 [ERROR] [.service.AbstractActiveService] - Error while executing background thread Souliss Refresh Service
java.lang.NullPointerException: null
at org.openhab.binding.souliss.internal.SoulissBinding.execute(SoulissBinding.java:343) ~[na:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) ~[na:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) ~[na:na]
2015-07-28 21:15:17.758 [DEBUG] [.denon.internal.DenonConnector] - Command: NS, value: E1
2015-07-29 07:00:37.878 [WARN ] [.denon.internal.DenonConnector] - Encoding error in post
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"html"). Expected elements are <{}cmd>,<{}rx>,<{}text>
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:697) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:243) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:238) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:105) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1098) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:534) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:516) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:125) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:605) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3138) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:880) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) ~[na:1.7.0_85]
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:648) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:203) ~[na:1.7.0_85]
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:175) ~[na:1.7.0_85]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:157) ~[na:1.7.0_85]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:204) ~[na:1.7.0_85]
at org.openhab.binding.denon.internal.DenonConnector.postDocument(DenonConnector.java:573) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.updateDisplayInfo(DenonConnector.java:460) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.refreshHttpProperties(DenonConnector.java:496) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonConnector.updateState(DenonConnector.java:199) [bundleFile:na]
at org.openhab.binding.denon.internal.DenonBinding.execute(DenonBinding.java:71) [bundleFile:na]
at org.openhab.core.binding.AbstractActiveBinding$BindingActiveService.execute(AbstractActiveBinding.java:156) [org.openhab.core.compat1x_2.0.0.201507260157.jar:na]
at org.openhab.core.service.AbstractActiveService$RefreshThread.run(AbstractActiveService.java:173) [org.openhab.core.compat1x_2.0.0.201507260157.jar:na]
20:57:23.109 DEBUG o.o.b.d.internal.DenonListener[:80]- Connecting to 192.168.1.70
20:57:23.110 ERROR o.o.b.d.internal.DenonListener[:83]- Error connecting to 192.168.1.70
20:57:53.113 DEBUG o.o.b.d.internal.DenonListener[:80]- Connecting to 192.168.1.70
20:57:53.115 DEBUG o.o.b.d.internal.DenonListener[:92]- Denon telnet client connected to 192.168.1.70