5 years ago I wrote a piece of html (php) and javascript code for my Denon amplifier to control it from an internet page . This page also contains the buttons for controlling the house.
I have been persuaded to work with Home Assistant, which is why I am now working on integrating the control of the Denon, which should also work on this 7" display.
For the volume control I have created rest_command in HA and for the display a modified basic_pulse_repeat_button.yaml. This works well
I am now faced with the challenge that I want to read the status from the Denon (XML) for the volume number in the buttons, the scroll on the display and that I have a mute button that shows the actual status.
Does anyone have a few tips for that, to read the XML and process this in the buttons
No, I had tried too. No direct volume control, but (apparently) a volume adjustment to HA is pushed. This is what you want anyway, where I solve it with a sensor that picks up the XML from the AVR.
<edit>
I have checked the communication between HA and the Denon.
HA makes a telnet connections to the Denon.
Every time I send and http-get to the Denon, Denon shows the action on the Telnet-feed that will be read by HA.
http-get that I send:
GET /goform/formiPhoneAppDirect.xml?Z2UP HTTP/1.1
Host: <IP-ADDRESS>:8080
This weather / tide clock has the time in the upper right hand corner.
My esphome-modular-lvgl-buttons libary already calls the script time_update. You just need to add the code that updates your label. You can see my code that updates the time label. It looks like this.
- lvgl.label.update:
id: time_label
text: !lambda 'return id(system_time).now().strftime("%l:%M %P");' # The format %I:%M %p will display the time in a 12-hour format with "am" or "pm" included
And this is what the time label itself looks like.
# Time display - upper right
- label:
id: time_label
width: SIZE_CONTENT
height: SIZE_CONTENT
pad_all: 3
bg_opa: cover
bg_color: burnt_sienna
text_color: white
align: TOP_RIGHT
text_align: right
text_font: roboto24
text: "00:00 am"
The esphome-modular-lvgl-buttons library has an âempty buttonâ just modify that with a label for your time.
How can I use other icons like volume up and down?
I thought I am adding these substitutions and then refer to it from the button, but that gives an untreated icon.
Hello, would you happen to have step-by-step instructions on how to do this?
I would like to connect this device to my Raspberry Pi 3B+ or a WROOM ESP32, preferably wirelessly, but a wired connection is also an option. My goal is to turn it into a control center:
Display the weather on the screen.
Manage my MP3 library (files stored on the Raspberry Piâs SD card).
Access my Spotify account to control playback.
Wirelessly stream music to my Denon CEOL N9 hi-fi system.
Would something like this be technically possible? For now, at home, I only have two connected LED lampsâŠ
Iâve flashed the Modular Buttons to my Guition device. Iâve tweaked the code so I can access all 3 of my relays and also some extra buttons to control some lights that are in Home Assistant.
I have found that once you have more buttons than will fit on the screen it will then allow you to swipe from right to left to see the extra buttons. this works but now weâre all used to snappy iphones and the latest android devices responding instantly, when you use this it feels really sluggish (which is fair given the relative power of this devive) but is it possible to make it that when you swipe it doesnât scroll but just redraws the screen on the next âpageâ, just like how it responds when you have the menu bar and tap the next page, but without needing the menu bar and its buttons. Hope that makes sense.
Also, is it possible to make a kind of screensaver page that shows my energy use as a meter? I cant just figure out even how to add an energy meter to begin with let alone making it so it appears after a timeout period of inactivity.
Iâm after when its not in use it displays my energy use but as soon as you tap it then the normal âhome screenâ with the buttons etc appears. It would be awesome if the energy use could also show my battery and solar in there too like the energy meter thats baked into home assistant can. I do of course have all the relevant sensor entities present in home assistant to provide the data.
These little Guition devices are excellent, I wonder how long theyâll last!! Here in the UK they are the same size as standard wall switches so look amazing when replacing the non smart regular switches.
This is the scroll feature and as you mentioned does not work well. just make a new page if you want more buttons. I would group them with a button on the fist page the has the name of the group and open the page with the buttons for that group.
Yeah that should be fairly easy. I have some examples with clocks that are similar to an energy meter. I also have an example the shown some info from my Enphase solar system.
Make a list of info you want from your solar setup.