Jupsi / logi_z906_wifi

Logitech Z906 WiFi MQTT ESP32 with Console functionality and Homeassistant
GNU General Public License v3.0
12 stars 1 forks source link

Problem getting this to work #4

Open frostworx opened 1 week ago

frostworx commented 1 week ago

Hello, foremost, thank you very much for this great project!

I recently bought a Z906 and shortly after found this cool solution. Although we double/triple checked the wires, unfortunately we were unable to make it work this weekend.

The esp joins the network as expected and connects to MQTT, which in turn is autodetected by home assistant. The "Power" state is detected correctly as "Off" but there doesn't seem to be an option to turn it on from Home-Assistant side.

When powering on via console/remote nothing happens at all. When holding INPUT on the remote for 5 seconds, all input LEDs on the console turn on, so something is happening.

I bought 2 DE-15 (VGA) Female Breakout Board and 2 DE-15 (VGA) Male Breakout Board, so I was able to test the project IoT-Logitech-Z906 easily and it works as expected.

I'd love to get your project working, as the MQTT/HA implementation seems perfect, but I'm a bit lost now. The z906 version returned by the other project is '154', maybe an incompatible firmware?

I would appreciate it if you had some hints on what else we could try.

Jupsi commented 1 week ago

Hi, Power On / Off is only a visible State, not a toggle option because the Console doesnt response to the Serial Message which means it handles power state by itself. As far as i know only the Amplifier can be Powered by a Serial Message.

So turn it on via Button or Remote and then keep it on Powered state. Are Volume States Changeable from HomeAssistant?

Are you able to keep the ESP32 connected to PC while being connected to the Z906? The USB Serial Print some Logs while turning on etc. those kould help to track the Problem.

When connected to Amplifier and Console and turning on Power it should print a message like "Current Config: ..." or when you change a state in Home Assistant.

Does your Console response when you turn the Volume wheel after powered on? If not its most likely a faulty config which means reseting it should fix it.

frostworx commented 1 week ago

Hey, thank you for your quick help!

Ah, I see, that explains why there is no power on option :)

I can't turn the device on via console/remote, so I can't test if volume control do work in HA. Good idea with checking the serial logs, but I will probably need some days before I can test it again.

(the network and MQTT HA connection might have only worked, while the esp was not attached to the z906, but only via serial on the pc, I apologize for the confusion, I'll need to check that again as well)

Thanks a lot again for your help!

Jupsi commented 1 week ago

try connecting the Console to Amp without the esp, reset the config (keep the system in power mode) unplug console and daisychain esp and check if it then works.

I had this issue you describing while developing and it did cost me a couple of days to figure out why it didnt want to power on.

frostworx commented 1 week ago

Thank you very much! I'll check that shortly (tomorrow?) and will report back.

frostworx commented 1 week ago

I reset the config using vanilla console with remote 8 seconds input button press, left the amp powered on & daisychained the esp (connected to pc using moserial with baud 57600):

(is the vanilla console supposed to have leds enabled after un- and replugging it standalone? They are all off here, so it is unclear if the am still is powered on after adding the esp)

Jupsi commented 1 week ago

sorry for the late reply. can you post how the USB Serial Output looks like?

frostworx commented 5 days ago

sorry for the lag as well.

I'll try to find the time for another run soonish to get the serial out (iirc it was some "garbage" separated by pipes if that helps)

it is no big deal for me btw. for now, I simply send IR remote codes with my it blaster to HA, which works for the very basic controls I need (of course having a back channel to home assistant would be better) :)

frostworx commented 1 day ago

sorry, didn't have much time. when pressing several controls via mqtt/HA I get this broken output:

~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| pp|pp| p|p ~pp|pp| `

Probably won't help that much :D

I think it would be a better approach to restart from scratch with more time, so your limited time is not wasted with this issue. Likely I have a broken cable or similar.

Thank you for trying to help me and have a nice weekend!

Jupsi commented 1 day ago

probably something is off with your broker settings, the HA message should not lead to trash data

frostworx commented 1 day ago

nah, all (multiple) mqtt devices work just fine.

I'll restart from scratch with new cables and a new esp (just in case) in winter(?) :)

thanks a lot for your project and help!

Jupsi commented 1 day ago

which HA Method you try with your Log previous? Change Effect or Input will produce alot of data so just try to increase or decrease anyvolume by 1% to remove overhead log Also does your usb serial report any English log like "Volume Set to" or something?

frostworx commented 11 hours ago

I tried all volume sliders and effect/input dropdowns. No, there wasn't any human readable string in the output. please don't worry, I'm pretty sure it is a hardware problem on my side.