#Watch
1 messages ยท Page 1 of 1 (latest)
mine is almost here, apparently
just checked tracking should be here tomorrow morning
Jesus thats fast.
I ordered mine like atleast a week before i mentioned it to you guys.
gonna be honest, i am no expert at ESP code or ESPHome.
What are my options here?
Could i flash it with the box-3 firmware and just have an edited yaml for the pins etc?
well it wasn't supposed to be here for another 2 weeks , so yes came super quick.
It would be so sweet if touching the display could trigger voice_assistant.start
i would start with a basic config, i'm not able to look properly at the mo .. just got a washing machine in bits.. the s3 box has a different audio hardware and screen type. i'll be able to have a quick look shortly though to see if i can find the specs
just found this , looks promising https://github.com/velijv/LILYGO-T-Watch-S3-ESPHome
infact looks like everything we need is there ... all the components are listed and all esphome supported by the looks of things.
What the .. hahaha okay.. thats kind of awesome. i thought this was new and nobody had done it
thanks mate
i will try to get a duck on the screen and trigger VA with touching screen to start.
Would be awesome if both wake word and touch could both work. i think thats doable
we will wow you with the delights of cheap chinese sh*te and you will be soon be parting with your hard earned cash ๐คฃ
delaying the inevitable i'd say.
hnn im having trouble connecting to the device even .. i can see it in the serial ports but not connect.
is there anything key im missing?
you probably need to put it into boot mode, looking about I found this guide which covers the boot enable https://meshtastic.org/docs/hardware/devices/twatch/
oh sweet man thanks i'll take a look!
have you seen these pins by the way?
the ones i had found gave errors for being above 40
i2s_
dout_pin: ```
oohh jesus christ thats not a good place for a boot button haha
why am i doing this (i am almost blind)
if its giving errors it could be the board type that needs changing in the config. big magnifying glass required ๐
sweet man!
You got VA on it already?
I have been trying to push this button for hours lol.
Do you need something small to push it or did you do it with your finger?
Also i noticed the github page you shared, he mentioned money to release the full source code, im not sure what he meant, what on that page is not open source?
i managed to do it with finger nail lol ... but it is very small. Yes I saw he wanted money! ... well i'm getting there slowly but sureley without parting with money lol . Got the display working as you can see, also touch, and the mic and speaker. I can get it to run commands by voice... but struggling with getting it to pick up wakewords reliably at the moment. I'm going to get all the components working first. then i'll get back to sussing the wake words. by the time you've got that button pressed i'll have a full config ready ๐คฃ
i'll paste everything i've got once i've added the last few bits. save you having to mess. then you can tweak and add your duck ...quack
hahaah sounds good man,
i actually already got like 3-400 lines yaml ready, but its hard to test right now, i might have to call a friend for that damn button.
i am already sure we can do something cool with this! i got stable diffusion so just let me know if you want a image/icon for your wrist
how you getting on? you managed to press that button yet ?
no. i had to realize i cant do it.
i'll have to wait for a friend to come by and help me.
life of a handicap can be frustrating.
but thats kinda why i am doing this.
VA can be a powerful tool for a blind man!
Think we can get a working media player entity?
https://github.com/pungkula1337anka/Voice-Stuff/tree/main/PythonMediaController
it would be amazing if i could output that to the watch, i'll have to rewrite it to use media_player.entity again instead of remote.entity again...
back and fourth.
we should be able to configure the VA with a media player entity using ESPHome. I can see how valuable a tool this would be for you. so by hook or by crook we will get this doing what you need/want ! and I understand now how hard it must be to get that button pressed. it took me 2 pairs of glasses and a head magnifier to see it.
I'm struggling with getting the battery management working at the moment. I have got tap to talk using the touch screen. also configured deep sleep to try and save the battery life although at the moment I haven't a clue what battery levels are like. i just keep myself plugged in on a 3m usb cable whilst i'm getting everything up and running lol .
The only things i haven't got working are the battery monitoring, the haptic feedback and accelerometer. but as it is ... it is a functioning watch with VA and touch screen which i've setup a couple of binary sensors on so far to wake it up and to start speech, so adding controls and sensors etc from HA will be no issue. I'm quite happy with how it works... much better than i thought it would be lol
yeah thats incredible. your fast, and im sorry your getting such a head start, sorry i cant really help at the moment.
The box3 had so much limitations.
Sounds like your having the time of your lfie
Perhaps i'll get 2 more of these before they are high demand.
I had no success getting anyone to try that media script., i think perhaps people are scared of that big ass python.
maybe i'll bake the python and a reverse proxy into an addon. i think people like addons..
The VA component does not like bluetooth right?
What do you think the chances would be off possibilities of connecting bluetootheadphones to the watch for music?
ha , just realised that the python media player is your creation, oh we will have to look into that too ๐ it's all way above my paygrade.. i'm a hardware guy. Completley lost when it comes to real coding.
I can just about wangle some yaml together, more at home with a soldering iron.
Bluetooth is pretty restricted in esphome and limited to ble sensors etc. works great as a proxy. but no audio support. VA and BT are both quite resource hungry so it can cause issues with memory etc. I've not done much testing with it if i'm honest as I don't have anything that uses ble.
just going back to the s3 box 3 what limitations were you finding ? i'm really pleased with mine and have ordered another ... that's if it ever arrives... been on back order a month .. and they've just put it back another month
Wow sounds like we could make a good team as i can do (some) code but I cannot solder or press buttons., ahhah.
I broke my cruciate ligament in october i have been doing VA stuff almost 24/7 since, waiting for a doctor..
Box3 limitations i was thinking about was well.. mainly the framework.
Idk, but feels like id rather have a media_player. entity than a speaker.
and are you using i2c on the box3?
I think the temp and humidity sensors are causing issues with the VA still?
and alot of the other hardware is locked out because of issues when combined with VA
But perhaps im not using it right.
I would really like to try that continue_conversation firmware on it
the things i have learned last couple months. ๐
I like hardware too, i entered the world championship PC building competition lol.
anything to avoid being bored locked inside apartment.
yes.. a right pair! I have been pretty much housebound since 2020 when i got 'The Virus' and haven't been right since. i was hospitalised with it and left with several ailments since, one of which being chronic global pain and potential early onset arthritis so walking and getting about easily is no longer a thing. so i spend all day everyday tinkering and like you have been working on VA stuff since october.
I've got everything working on the s3box , with touch, voice, HA sensors, screen controls and va. I don't use the inbuilt speaker and output to other satellites with better speakers. There is a guy working on an esp-idf media player which makes life easier than having to have the arduino version. and thats what i will be trying out on the watch. i've had it running on various other hardware configs and it works well, he seems pretty pro-active with getting things to work as we would like. He's also working with Kevin the creator of the 'on board' micro wake word , so everything should work hand in hand eventually.
Ohh.. sorry to hear about your health. you and me both.. but hey atleast were having fun at home, im not bored yet.
That sounds great, about the s3box.
I have been calling tts service in my intents to my sound system.
How are you using the box display, is it possible to display a HA dashboard, cast or similiar?
You cant use the screen as a media player right
I've been talking with one of the contest winners and i have alot of ideas about displaying as part of the VA.
I'd love to be able to do like "share wifi" and display QR code on the s3box3.
Yesterday i managed to have all my text messages sent to HA (iOS)
I can use TTS on them, but i can imagine people with vision having them pop up on the s3box perhaps.
Im sending messages from my s3box with signal, i think i got the shortcut to send regular texts working soon too.
Id love to be able to run a intent that starts the mic and records and saves the recorded file on HA server.
feels like this should be possible too yeah?
could encrypt the files and use as walkie talkie or something.
can't cast or have an HA dash. but can basically build a graphical representation and then map any area of pixels on the screen to be a binary sensor. i keep mine quite simple so it's easy to read. on the main display i have the day and date across the top and then a large digital clock segment time across the middle, then underneath i have a row of mdi icons, with mic status, active or muted, battery level, a telephone icon that works with my mobile phone, so if call incoming it changes to green from red and the icon changes, i have in the bottom corners indoor temp and outdoor temp. I split the home page into a 3 x 3 grid to give 9 quick taps buttons, these aren't visible i just know which part of the screen to tap.
so i have taps to do the following. tap to talk for VA , tap for living room lights, tap for dining room, tap for my tinker room, tap for fan, tap for bedtime scene. then tap for heating control, which navigates to a new page wchich shows the current heating set temp and the current room temp, with 2 buttons to increase or decrease temp and a home button. I also have reminder pages that pop up and tell me to take meds. I got to the point where i thought yep , i can go to town with this... happy with how it works... and then moved onto the next device lol and will get round to doing more with it. but basically i could easily control all devices in
my home and see all sensors... just needs the time to make all the pages and buttons lol
I also have different pages pop up for wake word recognised and command accepted and all done.
I use the radar sensor to control whether the screen is on or off and if VA is active or not.
You could make a screen to control media player and someone with a bit more coding knowhow, i'm sure could give it a little more pizazz whith the graphic side, as i'm quite plain and simple lol. there is also the availability now for lvgl which should take the gui side to a new level
i've just got media player working on the watch... needs a bit of tweaking. but i've just played music from HA media to it
Haha thats incredible man. sounds so nice.
I aready have media remote, but my script controls every single command by voice. if i wanted to display anything for it, it would be the actual media in that case (tvshows, livetv, movies, music etc)
awesome mate!!
Do you know if its possible to set a custom intent for the "no_intent_recognized"?
Id love to make a script that automatically adds aliases. (auto correct)
Also, im just gonna be rude and come out and ask it, whats your policy on snooping around your box3 code?
the only thing i cant control in my apartment is the bedroom tv. id love to get the IR working on box.
If your a closed source guy i'd respect that of course ๐ฆ
that was me trying to be funny.
lol ... i did get it setup but i've not tested it yet... another on the never ending todo list , i don't like to be beaten by tech...I have made a few ir controllers so it should be fairly straight forward. if i want something to do what i think it should do then i will try my darndest and make it happen. I have spent the last couple of years getting to grips with the front end of ESPHome yaml etc... but i really need to start venturing into the internals. which might have to be the case with these remaining components on the watch. Incase you hadn't figured it I am an ESPHome fanboy ๐ with the exception of my wifes car and 2 double wall outlets everything in my home is ESPHome based. i quite like having just one ecosystem that I know how to make, configure and use.
Yeah esphome is nice. I got mainly got zigbee sinne i cant solder.
Regarding the intents, i did a list of all the Things i Wanted to be able to do. Around 40 things. I think I only got bank things left on the list, struggling with the Open bakning API. Oh and phone calls. Got alot on that github if your curious
yes I will have to have a peek at your github. I have done absolutley nothing with the HA side regards setting up intents etc. i have a few automations with sentence triggers and responses. other than that i can ask the time and set a hacky timer. the rest is just device control. because I have done so much testing with hardware and sorting esphome voice configs for other people I haven't really got anything properly setup for myself and tend to use little touch screens. but I completley get how much of a benefit all of this must be to you! with the added bonus of playing with it all to get stuff working how you want it.
For sure, i do everything through voice. โWhat is ..โ Will ask wiki and โi have a question ..โ Will ask google. โWhen does <store> closeโ Will get opening hรถurs. I get bus and train depaรคrtures get contact information all on TTS .. just among Otter things id like to do more but i cant really figure out more things to do lol
thats brilliant! hats off to you for doing what you do.
right back at you mr.
God i hate my friends, no one willing to come by to press a stupid tiny button.
thats a shame, pity your not round the corner I would have hobbled on over. how frustrating to have it sat there and you can't do anything with it. I think the button is too small to even easily feel your way to locate. i will pop the battery out and have a see if there's any easy way i can describe how to do it. Just doing a couple of updates to it , then I will take a look
I got a friend coming over hell yes!!
Did you use
the ESPHome web flasher? or how would i get it into ESPHome?
Promised to build him a website + flash a bitcoin ticker.. but thats a deal im willing to take
do you use the ESPHome dashboard or cli ?
i currently have the addon so thats dashboard i guess?
But can i use that to flash my own yaml on first flash?
should i do the yaml from that github as resource?
if you do the yaml in the addon editor, then click install and choose manual , it well then compile and give you the ,bin to save and then flash that from https://web.esphome.io then after that you should be good to just upload wirelessly straight from the dash
ooh okay awesome thanks buddy
Did you happen to have a basic yaml i can start with?
Im still getting some errors in my code and i just want the flash to go trough without problems while he is here helping me
yeah no probs, do you just want the basic board config , enough to flash it and get it online ?
yeah that would be so nice
here goes
esphome:
name: watch
platformio_options:
board_build.flash_mode: dio
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
type: esp-idf
version: recommended
sdkconfig_options:
CONFIG_ESP32_S3_BOX_BOARD: "y"
flash_size: 16MB
psram:
mode: octal
speed: 80MHz
logger:
hardware_uart: uart0
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
that was not how mine looked ๐
thank you! and yeah you got the feeling correct, frustrating. i was out asking people on the streets, without sucess though I Wish I could have seen their faccial expressions..
crazy man walking around asking people to press his small button might have raised a few eyebrows lol
Its hard to get people just to read a sign to tell when the busses departure, You can imagine pressing a tiny button.
I do like to raise eyebrows though
got to get your kicks where you can lol ...
now this watch as wonderful as it is and yes , I have ordered another haha the only crucial thing I haven't found is an ESPHome component for the axp2101 power management chip. Its totally beyond me to create one... I have looked at it and tried as I might i can't figure it out. I have zero experience with arduino coding or micropython , or massive python if it comes to it. so I have hit a bit of a brick wall. The watch functions ok without it , but it would give far more control over some of the other components and obviously lets you know how much power is in the thing.
Have you been able to switch the device on and play with the stock firmware thats already on it ? or i'm guessing that switch to turn it on is pretty tiny too
there should happen somethinig on the screen when holding boot button and pressing crown and releasing boot right
cable needs to be in clock and computer or doesnt matter?
there is a small power switch too that needs to be on first, then make sure watch is turned off by pressing and holding crown. then press and hold tiny button and press crown for a couple of secs, you computer should detect the comport as a serial jtag/debug or words to that effect
ah page said click crown once
we were unable to put it into boot mode will try again
cause we will see it on the clock screen if boot mode is in effect right
you could also try by making sure watch is off by long pressing crown, then with usb disconnected... press hold tiny button and connect usb still holding tiny button then let go
so weird cant get it to work
are you sure it's a usb data cable?
ok that should be good, and when you switched the little power switch did it boot up and displayed something on the screen
nope nothing happens on screen
try it directly into ha if that is running the addon
then you can choose plug into the computer running the esphome dashboard as the install option
[21:44:29]I (915) spiram: Adding pool of 8192K of external SPI memory to heap allocator
[21:44:29]I (923) spi_flash: detected chip: winbond
[21:44:29]I (927) spi_flash: flash io: dio
[21:44:29]I (932) sleep: Configure to isolate all GPIO pins in sleep state
[21:44:29]I (938) sleep: Enable automatic switching of GPIO sleep configuration
[21:44:29]I (945) cpu_start: Starting scheduler on PRO CPU.
[21:44:29]I (0) cpu_start: Starting scheduler on APP CPU.```
sucess?
yes
no problem at all , just double check you can view logs wirelessly from the dashboard
is cli nice?
i am actually "kind of" (not kind of) a cli guy
i like it as its quick at compiling , and its nice and quick to just edit the yaml file in any text editor, save it and type 3 words and it compiles and installs
and with it being command line you can just press up or down arrow to choose from previous used commands so it makes it quick when making new devices and your constantly compiling and uploading
sweet, im getting it.
does it support arduino stuff
is it micropython i should get good at ?
to be honest i'm not really sure, my brain got a bit frazzled trying to work out what was needed to make an external component, i'm sure that arduino code and micropython code can be ported into esphome to make a component, but it was all way out of my skillset
seems fun.
what pin did u do for click to converseby the way?
decided i only want one picture display and clcik anywhere on screen for start VA
dont need anything fancy on screen i cant see it anyway
or can i do ${BOARD_TOUCH_INT}
you can use on_touch : trigger in the touchscreen: component
this is my yaml for the touch part
touchscreen:
- platform: ft63x6
interrupt_pin:
number: GPIO16
# allow_other_uses: true
address: 0x38
display: screen
id: tscreen
i2c_id: tsc
calibration:
x_min: 0
x_max: 240
y_min: 0
y_max: 240
on_touch:
- light.turn_on:
id: led
brightness: 50%
so at the mo the touch just triggers the backlight to turn on , so you can just add to the list belo to do voice_assistant.start
off.. been at this all night, as i said im very new to ESPhome..
Mind taking a look when you have time?
https://pastebin.com/cspBzGgE
lol , likewise haha - I have just uploaded everything I have got so far to GH https://github.com/BigBobbas/esphome_firmware/tree/main/lilygo T-Watch S3 if you wanted to compare and also posted some info in ESPHome discord https://discord.com/channels/429907082951524364/1228611589289021531
If you would like me to put a basic config with tap to talk and an image on the screen with working VA I don't mind doing that at all for you. you can then add your own quirks to that ? I'm sure that your knowledge of coding will come in handy for further development with adding other voice related features. No point in you spending hours doing what I have already done, unless you just enjoy it then fair enough ๐
hahaha that would be awesome, thats just what i thought too, but it was a fun night atleast! but i dont want to do the same one more 24h actually heheh
after a full day you kinda want to get started testing, i can be a bit inpatient.
I did get a fair start on the mediia addon too, threw in caddy reverse proxy with duckdns. so now its not python media controller. now its just qwackify
love it 'qwackify' yeah no problem at all .... i'll get to it ๐
I will try and add some notification sounds for various things like api: connected so you know voice is ready to use , also a tap to talk 'ding' so you know that touch is accepted and ready to talk. can you access HA via .local address? eg homeassistant.local ?
no i am under reverse proxy.
Can you send sounds over https://homeassistant.local
can try it
thats exactly whats making qwackify advanced. cause chromecast (media_player.play_media) only accepts https over a domain if you want it to be sent to handle all codecs and files types
so i have the media im currently playing publicly accessible and send the media as a m3u file with a remote.turn_on to a domain and since then i have 0% failed calls.
ah ok ... what i will do is put the triggers in with a link to the files on my ha just to test it works, then you can play with that side as it sounds you know what you are doing with regards to that far more than me. all i know is i use media_player.play_media as a trigger with a url to a 'ding' file lol . so i think you will be much more qualified to make that do bigger and better stufff
haha yeah i kind of had to dive deep into the media player rabbit hole
but i never had a media player on esp actually so this will be fun
fun thing is never watch media, i mean i cant see.
but code is fun
i have duck-tv also. its android apk and web based jellyfin fork
all too clever for me ๐ some impressive stuff for sure... i don't know how you do it without being able to see... it's amazing! i can see and wouldn't even know where to start lol
just compiling now to give it a test
do you know what version of ESPHome you are running , just so i can test it on the correct ver
lemem check, but i just changed to non beta
Current version: 2024.3.2 (Changelog)
when i read on screen i got 20x zoom
perfect, thats the version I just tested with, its working ๐ i'll stick it on GH you will just need to edit the url's . i made it so it boots with the backlight on and your duck appears , then after 30s it goes off. we can tweak that if you want it on at other times thats simple to do now its working. post a link in a second
if you have the device added already to the HA ESPHome integration, then delete it first, then copy and paste the entire yaml from the GH link and overwrite everything in your existing yaml. save it and install it. HA should re-detect it you can then add it back in. once added go to the list of ESPHome device in the integration and next to the entry for Watch in the list. click 'configure' then tick the box to enable service calls. ๐ good luck https://github.com/BigBobbas/esphome_firmware/blob/main/nisse/nisse.yaml
hahaha that is just great
thanks so much!
hey you're more than welcome, i love helping people and in return I learn more and more stuff... so it's win win
you where not in the contest?
i was going to enter , but i didn't get my project perfected in time. i had a few i could have used, but i converted an old room atomizer lamp, that had multiple sensors , VA , media player, oled display and the lamp and i didn't finish it in time.
oh thats too bad..
i did not enter anything either i entered steel series wc championship that was more than enough, not fun working under time pressure.
and thats so interesting so you do esp-idf after all,
no wonders my did not work
yes it allows the use of the external adf component which gives the adf media player and mic support. it allows also to play media at the same time as having voice assistant running, which isn't possible with the arduino framework
just got the IR to turn my amp on and off from the watch ๐
oooh sweet.
i never thought about it and just ordered 900 mhz which one do u have
i have the 915 too but tbh i don't think i will ever make use of lora
have you tested the config yet ?
hahaha yeah its very cool! have already added stuff 3 times
speaker do not work though=(
did you tick the box to allow service calls ? , also have you tried going to the media player in the integration for the device , click on the media plater and browse for media ?
yeah thats crazy cool!
but yeah nothing from the speakers
hmm it worked from mine, if you can try and play audio with the esphome device logs open from the dashboard and paste them in pastie , can see if it gives any info
smart, and i think i got the error in there
what type of files have you tried playing ?
have you got an .mp3 you can try
tried piper
made a whole lot of sparkling... but only once and not anymore now its just quiet
just tested with piper on mine and it's fine. just make sure that the media player in the integration isn't showing as its stuck playing
should just show idle before playing
hm maybe i damaged it trying to press tiny,
the speakers kind of out the way, so should be ok ... unless you were trying to press it with a hammer... i know you were getting pretty desperate to get your button pressed
try rebooting the watch and then try piper again
had to get some air i get stupid when i have been up
rebooted and did not seem to help actually,
logs said something about mp3 decoder error.
I did see the tts proxy going through, that was also mp3
oohh.. what the hell.. noticed watch_player was not exposed that was probably it
Hey @worldly yoke you already have the possibility to have media player and voice assistant running at the same time ?
"these are not the droids your looking for"
have you got it working ? had to have a sleep, wish I hadn't feel worse now lol
yes, it is possible using the external component for adf , not made by me ... but highly recommended by me supported by me ๐ https://github.com/gnumpi/esphome_audio
nope, still kind of stuck
So it means that things like answer after an automation, instead of before ( like in Sentence) would be possible?
ahh no. did you compile using the dashboard ?
i'm not sure I understand what you mean ... it should give you the ability to have media playing and also use the mic at the same time. it is still a work in progress however, but that would be one of the aims is to have duplex audio
was that wrong
no no thats fine, i'm just trying to build a picture to see why it's not working
does your s3 box play audio ok ?
What i was expecting to be able to do is like have a conversation with my assistant, or even give specific responses after checking device states...
lets say ... if i ask the assistant to "Open door" i would start an automation on node red with sentence for example, and sentence node allows me to give back a response right before the automation start.
I was hoping with media player, and the ability to send audio back to the satelite, i would get the trigger on the "sentence" node, check the door state, open the door and then say "The door is now open" or even "The door was already open".
yeah but with speaker and not media player
i have done that. wait_for_response we'll like to call it
automation:
alias: do you want to
description: ""
trigger:
- platform: state
entity_id:
- sensor.your_trigger
action:
- service: esphome.butler_va_start
metadata: {}
data: {}
- wait_for_trigger:
- platform: conversation
command: yes
- service: your_action
mode: single
esphome:
api:
encryption:
key: !secret api_key
#Custom Creates a service to start listening
services:
- service: va_start
then:
- voice_assistant.start:
silence_detection: true
- service: va_stop
then:
- voice_assistant.stop
could you try again and grab the logs , but more from before the play starts too, to show the url etc
but is that possible without the media player? or is that a media player feature ?
what i mean is ... that wait_for_response makes all sence for me. and it is what i was expecting. i mean ... i dont want it as a media player beeing able to have audio running and voice detection at same time. i would expect to be able to havae like a trigger to stop voice recognation ( or the microwakeword ) and send a notification. or even remove that "default" response from the "sentence" and then beeing able to do what i said ... run an automation, and then send back a notification... even if that is a response from the sentence itself, or as a result from the flow.
this said, what im not understanding is if that is possible already, or just with that "esphome_audio"
tried with wav too, same result
Install logs
https://pastebin.com/w6enVA3Z
logs while sending service call to play
https://pastebin.com/jE43nJcv
try it out and see
theres no url, as if it's not getting sent the stream. I get the following when i play an mp3 from 'media' in HA
[11:48:08][W][component:237]: Component display took a long time for an operation (241 ms).
[11:48:08][W][component:238]: Components should block for at most 30 ms.
[11:48:09][W][component:237]: Component display took a long time for an operation (242 ms).
[11:48:09][W][component:238]: Components should block for at most 30 ms.
[11:48:09][D][media_player:059]: 'watch player' - Setting
[11:48:09][D][media_player:066]: Media URL: http://192.168.1.8:8123/media/local/api.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJiMzJiZDc4MDRkNGI0NzliOTE3MzlhMWFkOTY5Y2ExMiIsInBhdGgiOiIvbWVkaWEvbG9jYWwvYXBpLm1wMyIsInBhcmFtcyI6W10sImlhdCI6MTcxMzA5MTY4OSwiZXhwIjoxNzEzMTc4MDg5fQ.78x5Wlvg5XWXsdoCY943E-9m0FsvC4XFMUrpgN-k-J0
[11:48:09][D][adf_media_player:030]: Got control call in state 1
[11:48:09][D][esp_adf_pipeline:050]: Starting request, current state UNINITIALIZED
[11:48:09][D][esp-idf:000]: I (3801666) MP3_DECODER: MP3 init
[11:48:09][D][esp-idf:000]: I (3801669) I2S: DMA Malloc info, datalen=blocksize=512, dma_buf_count=4
what do you mean no url
i did provide one atleast
u mean its lost out there somewhere
hmm.. AdGuard/pihole ?
is this an dns issue
if you look at my logs above you can see the medi_player event with the url of where the stream is coming from. but your logs don't show any media_player event as if HA is either not sending it or it isn't getting to the watch. possible pihole. double check the HA settings>> sytem >> logs for anything that may be related
the watch is showing as being on 192.168.1.100 so any events in the logs with that address
oh i did give it a static ip first thing when i woke up.
but it was not working yesterday either. i'll reboot and reflash everything see if it persists and check logs again
&
Not sure what too make out of all this.
Did not have any sucess finding anything in HA logs as they are filled with all sorts of junk errors - i know i know, i mistreat HA
i did notice i did not enclosure the music file before, changed so i now do, but it did not matter. removed the device from HA and rebootade and reflashed, activited power to use HA entitys, turned off all DNS filters, no sucess
ah thats an improvment, it's showing the media being recieved with the url
the only difference between my logs and your logs is that after my url I have an auth signature so i wonder if that is something that is stopping it , because there is no auth signature... what ever one of those is ๐คฃ
ooooohhhh.... thats so strange, so https is maybe not allowed like this.
thanks i got a few ideas i can try
i've got a couple of things to ask the dev , so i'll mention this too... just incase theres something he can do his end
btw do i need esphome under ssl settings
not that i am aware of, i've never had to do anything other than install it , but my network and server setups are very basic and simple
i woke up from a dream telling me this was a good idea:
https://i.imgur.com/Tc0JRlh.png
it did solve that problem i had been working on for months but did cause whole lot of new problems lol
did a new device and there is something weird going on for sure media player goes from idle to playing then back to idle all the time
still no sound though
had to do some jobs this afternoon and have a sleep lol ... can you paste up your whole device yaml as you have it now and i'll just check that something hasn't gone astray
its basically the same as you gave me, just removed some things to make sure it wasnt the cause.
https://pastebin.com/q5GAYgeA
password qwack
hope you had a nice sleep ive been working on the media player addon.
probably could put it into testing tomorrow
this might be a valid point you commented. i added that in to see if it would allow me to play radio streams i haven't been able to get to work previously, however it didn't solve it. so yes i would comment it out and see how it goes.
only managed half an hour. had to try and repair the washing machine, but gave up as it's too hard when i cant get on my knees, so i dismantled it bit by bit, removed the counter balance wheights and wrestled it into the back of my car to take to be re-cycled... there was a substantial amount of swearing going on!!
that sucks, trust me i know whats it like giving up on something due to handicap,,
Im glad i finished my PC.
https://pungkula.duckdns.org:1337/local/pc.mp4
was close on giving up.
had to listen where the water was leaking, lol.
this is not a recommended method for beginners.
wow ... thats impressive and very funky! well done you... thats amazing, considering your limitations I have no clue how you manage to plug it in let alone build that beast!
thanks!
But i cannot get my head around this media player.
Perhaps i should check if speaker work?
HEEEY
DING ๐
i heard ding! i heard ding!
then it was because of:
1 CONFIG_ESP_TLS_SKIP_SERVER_CERT_VERIFY: "y"
or
2.
external_components:
- source:
type: git
url: "https://github.com/gnumpi/esphome_audio"
ref: dev-next
components: [ adf_pipeline, i2s_audio ]
refresh: 0s
url was not within quotes
my money is on the TLS
thanks for sticking with me for these tough times ๐
i appreciate it
oh i removed the remote trasmitteralso
as it wouldn't have compiled if the external component was wrong, well that's one to remember.
I will remove that from the config as it didn't help with my radio player either.
oh and you're welcome, glad to have helped. the ir transmitter does work so turning the TV on should be possible, just need the code
only my bedroom TV dont have CEC but its the same remote for both even though different models so it shouldnt be that hard to find i guess
gonna do some work later on to see if i cant get the media player to act as chromecast
correct me if im wrong but cant i use the remote transceiver on the clock & point the TV remote at it to get the code?
unfortunatley it is only a transmitter, that part works. i have tested it . so need to get the code. can probably find the code from the make and model and google ๐
well all the codes, as you could create binary sensors for different button presses and then add them to voice automations in HA
i only need the pwoer button, since the rest i can control from android remote.
But the s3-box3 has a reciever. perhaps that one is better suited for that anyway
i'lll have a play with the one on the box , see if i can get it to read codes
oh boy thats a loud media player.
by the way how would i pass variables in a device config?
oh this will be fuun!!
i should quit here though and try sleep
got some serious work to do tomorrow! night night bud
did some research and i think playing videos on the watch will be alot harder than i thought..
but i can do a script to convert flac to mp3 and play on watch atleast.
thinking about maybe having the newscasts on watch also
do i have to import/create a custom component to get the bma423 to work?
a step counter would be cool
and oh yeah i was meaning to ask you, what microphone settings do you have?
played around with it and even tried same as the box3
but its having real trouble understanding me...
yes unfortunatley i've not got a component as yet , or for the haptic motor, but they may both rely on the power managment ic as I think also the rtc clock may do as it doesnt appear to retain the time.
yeah the mic is in a bit of a funny position too, which won't help. i've got volume_multiplier set at 4 but it could go higher. I haven't recorded any audio and listened back to see how the volume and quality is. something else to add todays todo list
i did see this.
https://github.com/Solla/Variable-LRA-Frequencies-on-DRV2605
hope it can help
theres code available for all of the componets in arduino or mycropython, just not ESPHome and I don't know where to start with making an external component. it is well over my head. i have asked a couple of ESPHome devs if they can help out and have sent them what resources I've found... so hopefully someone will come up trumps
ohh, alright!
Is it not possible to use the gpio plattform like in this example?
sensor:
- platform: adc
pin: GPIO32
name: "Battery Voltage"
update_interval: 60s
filters:
- multiply: 3.3
unit_of_measurement: V
accuracy_decimals: 2
id: battery_voltage_sensor
sensor:
- platform: template
name: "Battery Level"
lambda: |-
float voltage = id(battery_voltage_sensor).state;
// Calculate battery level based on voltage
float battery_level = (voltage - 3.0) / (4.2 - 3.0) * 100.0;
if (battery_level < 0) {
battery_level = 0;
} else if (battery_level > 100) {
battery_level = 100;
}
return battery_level;
unit_of_measurement: "%"
accuracy_decimals: 1
icon: mdi:battery
no it would need a voltage divider wired from the battery to an ADC pin
this i believe is the mycro python code i found, it means nothing to me https://github.com/lewisxhe/XPowersLib/blob/master/Micropython/src/AXP2101.py
oof nice, i can work with that for sure
makes more sense to me than those ESP yaml lol
there appears to be info scattered everywhere, i don't know if there is anything useful in here... it is like trying to find a needle in a haystack
just done a mic recording test and it is very clear and a good volume , however i did notice a very slight 'skip' a couple of times in my test. possibly something to do with sampling. I will investigate further as it could be one of a number of things
i just demolished my nas to change PSU thought it got short circuit .. 6 hours later i found out its not and im right back at where i started lol.
good day.
i was thinking perhaps the sound from the on_wake_word_detected might disturb the mic
going to focus on adding the components again, but right now it feels like i lost my brain somewhere
creating your own components seems almost like copy paste if you have the python-i hope so atleast
I will let you test your theory , this is definitley out of my league lol ... all i know is that everyone says find a similar component and use that as a basis for structure etc, but i have no idea lol
yeah .. it was more complicated than i thought since apparently ESPHome uses C++ which.... im useless at.
But i think i got the battery sensors working atleast.
Perhaps they are not showing the correct numbers.. I cant test until i get my NAS back up again since my reverse proxy is on that machine..,.
i'm happy to test if you want, desperate for battery levels ๐
sure thing mate
just dont call me a cheater hahaha
not at all ๐
external_components:
- source:
type: git
url: "https://github.com/gnumpi/esphome_audio"
ref: dev-next
components: [ adf_pipeline, i2s_audio ]
refresh: 0s
- source: github://stefanthoss/esphome-axp2101
components: [ axp2101 ]
i2c:
- id: general
sda: 10
scl: 11
- id: tsc
sda: 39
scl: 40
- id: axp
sda: 10
scl: 11
sensor:
- platform: axp2101
model: M5CORE2
address: 0x34
i2c_id: axp
update_interval: 30s
brightness: 75%
battery_voltage:
name: "Battery Voltage"
battery_level:
name: "Battery Level"
battery_charging:
name: "Battery Charging"
hahaha
m5Core2 uses a 390 ma battery (watch 400) so should require tiny modifications to get it to show good numbers
just started compile ... :๐ค
sweeet hope it works out!
surprised you did not find that one, your not blind ๐
what do you think about my slogan for the media controller addon?
What is ๐ฆ duck-TV? ๐บ
duck-TV is a super easy way to power-up your Chromecast and give it voice controlling capabilities.
The duck-TV Addon can be used to control all kinds of media!
๐ฆ Quack and play, no delay,
๐๏ธ Clicks and taps? A thing of the past,
๐ Just speak up, and have a blast!
lol
i cant even copy and paste it without compile errors and I can see ๐คฃ just sorting my syntax
thats great ... i love it ๐
thanks
oh you want me to upload to pastebin
maybe i screwed up posting it here?
(i get one word per line zoomed in so i cant see errors)
no its me
ok , compile round 2 ... fingers crossed, i had to make a slight change. you cant define the same pins twice for the i2c bus, so i changed the i2c_id: from axp to point it at i2c_id: general which defines those pins
ah... yes I have tried this component as I made a threda in the ESPHome dashboard seeing if anyone could help. as I was getting the same error as I have just got when compiling
src/esphome/components/axp2101/axp2101.cpp:4:10: fatal error: Esp.h: No such file or directory
- Looking for Esp.h dependency? Check our library registry!
- CLI > platformio lib search "header:Esp.h"
- Web > https://registry.platformio.org/search?q=header:Esp.h
#include <Esp.h>
^~~~~~~
compilation terminated.
*** [.pioenvs/watch/src/esphome/components/axp2101/axp2101.o] Error 1
========================= [FAILED] Took 37.67 seconds =========================
oohh
try downloading the files and use it as a custom component
https://github.com/lboue/esphome-axp2101
perhaps it will help:
esphome:
includes:
- custom_components/axp2101/axp2101.h
sensor:
- platform: custom
lambda: |-
auto axp2101 = new AXP2101();
App.register_component(axp2101);
return {axp2101->battery_voltage_sensor, axp2101->battery_current_sensor, axp2101->battery_power_sensor, axp2101->battery_charge_sensor, axp2101->battery_discharge_sensor, axp2101->battery_percentage_sensor};
sensors:
- name: "Battery Voltage"
unit_of_measurement: "V"
accuracy_decimals: 2
- name: "Battery Current"
unit_of_measurement: "A"
accuracy_decimals: 2
- name: "Battery Power"
unit_of_measurement: "W"
accuracy_decimals: 2
- name: "Battery Charge"
unit_of_measurement: "mAh"
accuracy_decimals: 0
- name: "Battery Discharge"
unit_of_measurement: "mAh"
accuracy_decimals: 0
- name: "Battery Percentage"
unit_of_measurement: "%"
accuracy_decimals: 0
i'll have to have a play later, never made a custom component .
i just copied the files into /config/esphome/components/axp2101
then you include them in your devices yaml.
oh , i think i did that, but somewhere it is missing the Esp.h file , but i have a feeling that component is for arduino framework and not esp-idf
oooh, you are right, how did i miss that.....
sorry still new to ESPhome..
i will study some arduino > esp_idf convertion
rather you than me lol ... it gives me a headache
without the power managment - with wifi on and screen light off i get about 6 hours between charges ๐
Wow thats so sad... cant we expect more? I know its a tiny battary but stil..
it needs that component
Ah i see. (not really but i understand)
And why are we on idf?
because of the VA? Perhaps it would be better to write the VA to arduino framework instead of rewriting every component to idf?
the media player needs idf , there is an arduino player which is the current ESPhome one. i will try everythin in arduino without the external one and see how it goes
idf is a more responsive framework but i'll see how it runs
tried with arduino , and the battery level shows!!! yayyyyyyy , however... the touch screen doesnt work or the audio now ... booooooo!!!! ๐
oh and it didn't show that it was charging either ๐ฆ
I see what you did there... just real eyes d :p
sadly i guess thats a trade off were not willing to do right..
i guess 6 hours is not thaaat horrible, if it atleast working as it should.
I FINALLY got my NAS & reverse proxy back up, now i can finally flash watch agian hahaha
Life is "good" again !
been sitting in my closet for almost two days
atleast my lights work without https but you kind of realize how vurnable you are when a server goes down and nothing is working anymore..
if you don't want to send streams like tts then you can use deep sleep and touch to wake which would considerably increase battery life , personally i like getting notifications
it's good that you have come out of the closet. ๐
hahaha hey you!!
Yeah thats a good point.
I will have to use it some before i could decide i think.
I have barely got the chance to try it out yet.
And i do have TTS notifications on my phone already so perhaps its not a MUST have for me.
I just ocmpiled without the "listening" sound, gonna see if the mic got better.
By the way, how do you have the wifi setup?
Having it connected to the phone is probably the best option if your out and about, you cant set two wifis right?
ye syou can add 2 wifi's , i was going to test the ESPHome wireguard component to see if it will talk to HA whne out and about, or if i can use my phones open vpn to give it an apropriate ip on the right subnet... but thats a little way off. i'm still sorting the screen menu's and buttons and sensors etc at the moment.
i was thinking wireguard before too, but you will still need internet to be able to use it correct.
i already have wireguard on the phone so i was thinking wireguard on phone and watch connected to phone.
But if you can set two wifis on watch thats great!
yeah , so when at home it connects to that and when can't connect connects to the other... i think anyway... i've not tested the theory yet lol
will try it out for sure
If you have time would you take a look at
My code got validated but errors when compiling
code
https://pastebin.com/EHPhPVyk
Logs
https://pastebin.com/eVVhg6hQ
pw is qwack
try running a clean build files and then see if it compiles ๐
i always do that!
failed 3 times.
I also had problems getting the text sensors to show .. tried deleting the device before compiling and changing the hostname it didnt help
i shall delve deeper
think i found it .... that was a needle in a haystack
really
it's the on_touch automation in the touchscreen component
wait until?
not sure, but it's something in that automation
kik
lol
missed a -
how did that get past validation
this happens way to often, why dont i just develop a screen reader for code ๐
i miss stuff like that all the time , and can't spot it for looking lol ... i don't think that validate validates lambdas ... but i could be wrong
no i was wrong, i added a - and it got validated again and same result when compiling
have you figured it
hmm no trying a total system reboot now..
But
The error message error: could not convert '<brace-enclosed initializer list>()' from '<brace-enclosed initializer list>' to 'std::tuple<esphome::touchscreen::TouchPoint, const std::vector<esphome::touchscreen::TouchPoint, std::allocator<esphome::touchscreen::TouchPoint> >&>' suggests that there's a problem with the initialization of the var_ member variable.
The var_ member variable is a tuple that is initialized with an empty brace-enclosed initializer list. This is a problem because the tuple contains a reference to a std::vector, and you cannot bind a temporary (which is what the brace-enclosed initializer list is) to a non-const reference.
that may aswell be written in chinese to me ๐
hahaah a yeah same..
thats why my interpretation of it is that its not a yaml problem
now
after reboot and removing both wait_until
it worked
but microphone still cant understand me..
and no text sensors
perhaps im doing them wrong. just want them visible in HA
realized i could solve the text sensor issue simply by instead using
on_stt_end:
- homeassistant.service:
service: input_text.set_value
data:
entity_id: input_text.watch_request
value: !lambda return x;
on_tts_start:
- homeassistant.service:
service: input_text.set_value
data:
entity_id: input_text.watch_response
value: !lambda return x;
and i also now understand why you just use ESPHome, its so much more flexible, and it feels like you can have everything in one yaml
i mean the assist addon is so weak compared.
while building my own addon i now understand they are all limited.
Im getting off HAOS, as soon as i get some spare time im swapping to either HA container or Core
okay ... - i cant pass lambda to HA?
sorry , i have been mainly sleeping the last day or so... can't get properly going.
trying to play catch up... 2nd watch arrived yesterday lol...
oh sleeping does sound lovely.
i got my couch yesterday, will do wonders for my knee i have been without for over a year
damn those chinese work fast
i had my watch understanding 3 commands in a row and then i reflash for some bullshit reason and back to not understanding anymore
the box3 understands 99% of the time...
have you tried recording samples to make sure you are sending clear audio?
no i should really do that today instead of messing around lol
im learning alot tho
haha ... have you done it previously or would you like a link
its a sticky in #VA i think
or is it another way to do it in esp
i wrote it out in readme here but think is the same as the pinned msg https://github.com/BigBobbas/esphome_firmware/tree/main/Mic_Tests
oh right, you are like a moderator here or
thanks!
one thign i thought about was
i have 3 pretty powerful USB microphones. its not possible to use these in ESPHome right?
reason i ask is the s3 box have usb A slot
well, funny you should mention that, the dev of the adf pipeline yesterday released an update to test , using USB speakers ... sooo might not be too long before mic support could be a thing
these 2 links are good to follow https://discord.com/channels/429907082951524364/1229209995158225117
that is crazy dope thanks for sharing
any progress with the adf stuff tends to get shouted out in those.
i sneaked around in your git . and alot of answers for my annoying questions is right there love it
it is the most disorganised jumble lol ... i'm trying to start tidying it up
couple of watch screen updates i've added. basic car staus and also home enrgy cost so far for the day
i will tweak the aesthetics once all the functionality is in place,
haha you are incredibly talented at this.
i actually found it pretty hard to get a hang of the code
i just really enjoy making a piece of hardware do stuff by typing things on a screen lol... i'm very basic in everything i do... i stick with 'simple is best'
that ethos fits with my brain lol 'simple'
okay the sound is actually quite amazing on both box and watch
this is it ordering extra watch while its still available can, will look nice with both on my arm
one on each arm and ankles ... the quad watch setup
hahaha yeah
mine says "mate you speak japanese i don't understand anything" on no intent found,
people will think im weird if i accidentally trigger it when out.
they will be right.
haha well yes... weird is your normal :p
really your watch says that too? ๐
this is really going to be amazing, instead of asking people on the street i can tap the watch, ask anything and get the answer straight from the wrist
right now i use a customized search engine & wikipedia API's to answer my questions.
Im going to do a python that uses the brave search API, that one uses AI to generate best matching answer for your search
hey mate, i know u got company so no rush at all
but when you have time im looking for a couple pin numbers that i cant for the life of me find.
what you after buddy ?
for the box
DOUT
DIN
IN
lrclk
OUT
lrclk
bclk
i think the lrck will be same for mic and spk as it's using the codec and ADF
aaah alright i'll try! i think i got them now
but why the heck they do so tiny text and bad quality its like they want it to be impossible for blind people ๐
oh tell me about it i had my screen zoomed to 300% and i can see ok ish with the right glasses on
yeah not cool espressif not cool
i'll send them an angry email later
yes give them what for the blindists!!
arggh
i guess you cant do mic and player on same i2s
you can share a single bus , the M5 stack Atom Echo uses a single bus
How do you do that?
I got error saying files already existed. Tried messing around for over 6 hours without success
tried again with my new config
and same result
https://pastebin.com/cSpqGJzd
getting 404 on pastebin
whops did the url twice
what are you wanting to do mate ?
aha! tis a little diferent with the box as it has an audio codec and uses adf ... i'm not sure if i've set one up on the box as i don't use it's speaker , with it being a big crap lol
i'll have a looksey
yeah i know it sucks.
but i have heard rumours that the speaker was alot better before flashing it with VA, so perhaps it can get tweaked to perform better?
i am trying to get my python script to start the VA if the python cant find a file.
but i cant start the VA because the box3 is speaking.
was hoping to stop the TTS when its a media player instead of speaker.
where there is a will, there is a way ! sure there will be a way aound it. i've not been too great this last few days, suffering with extreme fatigue and not managed to stay awake or at least upright for more than an hour or so at a time, which coupled with visitors has slowed me up somewhat. I'm sure we should be able to find the info needed, with my eyes and your brain.. nothing is unbreakable ... i mean unachievable
i2s_config->bck_io_num = GPIO_NUM_17;
i2s_config->ws_io_num = GPIO_NUM_45;
i2s_config->data_out_num = GPIO_NUM_15;
i2s_config->data_in_num = GPIO_NUM_16;
i2s_config->mck_io_num = GPIO_NUM_2;
so sorry to hear that you are not feeling good mate...
๐ฆ
added the mck pin but it did not help
another day sleeping ๐คฆโโ๏ธ not getting anything done at this rate .. lol i'll drop the dev a msg to see how we can implement this on the box without using 12s component config
i did sucessfully do it on the watch.
if intent fails, it starts up the same VA again
been trying to figure out using the adf-pipeline with the S3 Box , need to find components for the codec ES8311 (iirc) it's a continual hunt for components lol
haha yeah for sure.
how have you been mate, feeling better i hope.
i have been customizing the display on the box, think i will give the watch some customization soon again
how is your watch, or waiting for more components to be available?
Hi, hope you're doing good ๐
i'm feeling a little more alive today , (So Far) ! Yeah watch is good, trying it out using deep sleep at the moment to see how well the battery lasts, Lose the audible notifications... but I'm at home anyway so I get audio on other speakers anyway. Had the idea to see if I can use blue tooth to detect if I go outside and then disable deep sleep and then receive audio. but not looked into the possibility of that actually being possible. Ive got the display pretty much sorted, with a screen of buttons for inside and a screen for outside, a screen showing how much electric and gas has cost so far for the day, and a screen showing car battery level and remaining distance. i would like to add an alarm / timer and a stop watch. and calendar. once i've done all that, it will be pretty easy to duplicate the same display to the S3 box. My 2nd watch arrived... and because i'm weird... i've ordered a 3rd too ๐คฃ
haha sweet, sounds like you have complete faith in the battery component will be compatible some day atleast.
I feel like the battery last for more than 6 hours actually, cause its always still alive after my sleep.
I probably have to do an automation aswell for this right
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
- ssid: !secret phone_ssid
password: !secret phone_password
oh it seems to work thats cool, so simple
oh have you tested it ? does it just switch to the other when one isn't available?
according to ESPHome website it will automatically connect to the one with the best connection. (which might not be optimal, but sitll good)
I guess if your phone is on home wifi it does not really matter
arggh spent a whole day modyfing the yaml beliving it had errors... and openwakeword was off.. lol
doh! always great spending hours trying to fix stuff that's not broke lol ๐คฆโโ๏ธ
i just told my watch to start the rolling stones and it started on my iphone
was that intentional or a glitch in the matrix?
lol, intentional.
who said iphone was locked down?
there's no stopping you ! boom! still haven't got this blummin adf media working on the box ๐คฆโโ๏ธ
got almost 20hrs on the watch battery using deep sleep .... but i didn't actively use it much, i wish someone would hurry up and make these components... tempted to even offer bribery for someone to do it ... ie. a watch to use to dev and as payment
hahaha crazy
but i agree
hmm what about that guy on git?
I still cant belive he has the component developed and want cash. isnt github for open source...?
i have a question about the IR codes..
i think i found codes for my TV but they look like this
0000 006B 0000 0002 0000 00AC 0000 0015 0000 0015 0000 0015 0000 0015 0000 0040 0000 0015 0000 0040 0000 0015 0000 0040 0000 0040 0000 0040 0000 0040 0000 0015 0000 0040 0000 0015 0000 0040 0000 0040 0000 0015 0000 0015 0000 0040 0000 0015 0000 0015 0000 0015 0000 0015 0000 0015 0000 0040 0000 0040 0000 0015 0000 0040 0000 0040 0000 0040 0000 0040 0000 05F1 0000 0056 0000 0E4E
cant seem to find any tiny codes like you had
yes, i think out of principal I wouldn't pay that guy it's not really in the spirit of things!
What make is your TV ?
the one i want to control is an Anderson (swedish model)
but i can control my hitachi TV with the same remote
been trying to see what exact model it is but the label on the back of the TV is way to blurry when i take photo
just having a look to see if i can get the box to pickup and display codes i think it can be done... probably need a non existent component ๐คฃ
did you find these online? and do you have a link ?
https://www.remotecentral.com/cgi-bin/codes/hitachi/tv/
not sure if its the correct ones though.
in your code you supplied an adress, is that adress for the watch or for the IR device receiving the code?
for the device, but different recievers have different formats, some do have big blocks of code like you pasted,
just compiling now to see if the box will read these , then you can clone any button on any remote
apparently when using pronto codes you dont need an adress
thats probably why i can use the same remote for both my TV's
i tried using the Tv's remote aimed at the box but im not sure if i had the wrong logging options perhaps
i've just tried it on GPIO38 but not getting anything , i'll see if the pins different on another scematic
i used 38 aswell
hmm
i made a reciever box ages ago with an esp8266 and that picks the codes up, so i just used the yaml from that. maybe it needs a tweak
[09:15:48][D][switch:012]: 'TV Power' Turning ON.
[09:15:48][D][remote.pronto:101]: Send Pronto: frequency=41kHz
[09:15:48][D][remote.pronto:106]: Send Pronto: intros=0
[09:15:48][D][remote.pronto:107]: Send Pronto: repeats=26
seems to be sending the codes okay atleast.
maybe its just the wrong codes
or did i buy the wrong hz on the watch
IR should work , its just getting the codes right, whats your config for the transmitter
remote_transmitter:
pin: 2
carrier_duty_percent: 50%
aint there AI apps on the phone perhaps i can just take photo of the remote and it will tell model
worth a shot , you could also try sending the code as raw rather than pronto
hmm couldnt get the transmitter to transmit either
from the box
wondering if those pins are right, you wouldn't think it would be so difficult to just google and get a pinout for these damned things lol
if we both had 38 you dont think its correct
open it up arent you a master with the screwdriver ๐
yes i should probe it and beep it ... i'm on the case!
well it's now in pieces time to probe
haha good luck man!
yup deffo pin 38 for receive
so it must need some other params, at least i know it is making a connection back to the right pin
ooh okay well its good to know
did you take any pics
i know you like electricity prices i made this for you
{% set sensor_entities = states.sensor | selectattr('object_id', 'match', '.*_power$') %}
{{ sensor_entities | map(attribute='state') | select('ne', 'unavailable') | map('float') | sum }} W
if you have powercalc integration this will evaluate all your lights combined power
ooo cheers i will have a look at that.. thanks ๐
didn't take pics i'm affraid, i should have done a vid
can it perhaps be the VA that conflicts?
Maybe i should try to flash without the VA and just the receiver
i guess it could be worth a try to see if it works with a minimal config, i just tried with verbose logging and still zilch
logger:
# CDC logging is currently not working on the S3
# See https://github.com/espressif/esp-idf/commit/9924d9f27192a5fab5f66230c72249ecc6cad34c
#hardware_uart: USB_CDC
is that related?
no , shouldn't make any difference
hmm
:23:37][C][remote_transmitter:015]: Remote Transmitter...
[12:23:37][C][remote_transmitter:016]: Channel: 3
[12:23:37][C][remote_transmitter:017]: RMT memory blocks: 1
[12:23:37][C][remote_transmitter:018]: Clock divider: 80
[12:23:37][C][remote_transmitter:019]: Pin: GPIO39
[12:23:37][C][remote_receiver.esp32:054]: Remote Receiver:
[12:23:37][C][remote_receiver.esp32:055]: Pin: GPIO38
[12:23:37][C][remote_receiver.esp32:060]: Channel: 0
[12:23:37][C][remote_receiver.esp32:061]: RMT memory blocks: 3
[12:23:37][C][remote_receiver.esp32:062]: Clock divider: 80
[12:23:37][C][remote_receiver.esp32:063]: Tolerance: 25%
[12:23:37][C][remote_receiver.esp32:064]: Filter out pulses shorter than: 50 us
[12:23:37][C][remote_receiver.esp32:065]: Signal is done after 10000 us of no changes
[12:23:37][E][remote_receiver.esp32:067]: Configuring RMT driver failed: ESP_ERR_INVALID_ARG
[12:23:37][E][component:082]: Component remote_receiver is marked FAILED
think i removed too much from the config lol
yeppers, i just got that ... and added rmt_channel: and trying numbers 0 - 7
eg rmt_channel: 1
that gets rid of the error, still don't work though lol ๐ข
at the bottom it relates to s3 variants , and apparently there was a pr 2 weeks ago
hmm but thats for the c3 right
you wouldnt happen to have the pin for the power button? (watch) ๐ผ
so sorry to have to ask you but having such a hard time reading the pdf
dont be daft , ask away it's no problem. Now the power button!!! guess what ... lol .. it is part of the illusive AXP2101 component! so it's on the i2c bus and not on it's own pin
thanks, i really appreciate all the help you give.
but damn lol thats so sad.
was going to try deep sleep and it would have been perfect for that.
i send to sleep after 60s then use the screen interrupt as the wake_up pin, so wakes on screen tap
will try!
deep_sleep:
id: sleep_1
run_duration: 60s
wakeup_pin:
number: 16
allow_other_uses: true
inverted: true
wakeup_pin_mode: KEEP_AWAKE
you have to add allow_other_uses: to
touchscreen:
- platform: ft63x6
interrupt_pin:
number: GPIO16
allow_other_uses: true
address: 0x38
threshold: 200
display: screen
id: tscreen
i2c_id: tsc
calibration:
x_min: 0
x_max: 240
y_min: 0
y_max: 240
on_touch:
- light.turn_on:
id: led
brightness: 50%
oof.. swiping looks pretty complicated
Had an idea of one big icon per page, and swipe to change page. reading the documentation makes me think thats not done in a day :p
yes, thats not something i've attempted yet lol ... but I guess it will need to be attempted sometime soon lol
it really bugs me that the greedy github person already did all this hahaha
or is it all a con , and really he's done nothing lol
you might be on to something here... as his base yaml is in arduino framework and i googled around a while and i could not find anyone else that has HA VA in arduino framework.
(and he said he will release everyhing when sponsorship goal is reached, but did not mention how much the goal was or how much he has gotten so far)
he had a link to sponsor 1000$ dollars a month LOL
just got the back of the watch under the microscope and located the arch nemesis... the AP2010 grrrr
i pinged you a picture , and just noticed that an inductor to the right of it has a chip out of it! a chip out of the chip lol
hahaha jesus thats nothing for a blind man
but thats a good picture though very clear nothing like those pdfs
i dont think i ever used as much swear words as the last 2 hours
i fail horribly on swiping
C++ is a f*cking windows language right.. feels like it
lol ... your language young man!!!
are you using the on_update example from the docs ?
whops yeah i need to work on my patient for sure
yes. and this is the problem, i read 2 lines skip 4 lines and read 2 lines .. i miss important stuff haha
well it's not easy when you can see it ! it's all becomes a jumble to me... i find following docs a particular struggle for different reasons
yeah.. i probably want the action to change page in the on release and not on update
okay, i did not get off to a very good start
but i moved some steps closer to switching page upon swipe
i can maybe do it today
you my friend are a machine! i might have to pinch the config off you for that ๐
ofcourse buddy, i love to share my work.
imma might need some advice if i run into trouble though haha
no probs, ive got to send my watch back because of the chip in the chip, i was hoping they were just going to say keep it , we'll send another lol... luckily i have a spare ๐
oooh so it was broken i did not quite understand that yesterday
and also;
OMG IT COMPILED
too nervous to check if it works hahah
swipey swipe ... come on
hmm.. everything is working except it does not change page..
one thing i was confused about the docs was.. do you think i have to setup binary sensors just like with buttons?
right now im storing the last touch x variable in and have a script that changes page.
hmm not sure ... i'll have a look
would you trigger an on_release after state=2 -display.page.show: page_id . the docs are rubbish for this
yeah i totally agree, and i googled around and amazingly enough, there doesnt seem to be a single thing you can look at of an working yaml for swiping.
but im not worried. i'll get this working today
(still morning in sweden)
i did it (:
yayyyyy well done ! you said you would, and still time to spare ๐
yeah, still work to be done, i just did swipe left = page 1
swipe right = page 2
it gets a little harder if you have 6 pages and it needs to check what page your on before it can know what page it should gets sent to.
but shouldnt be that difficult
thats awsome, especially with no clear docs as a guide! ๐ซก
haha yeah, i will send you the basic example later today, you'll laugh cause (atleast mine) does not look particular close to the docs example
by the way, is there any limit to number of lines or something?
my over 1000 and it might get to 2000
not that I am aware of , I think as long as the compiled .bin fits the flash thats the only limit
ahhh man ... you need an 80" tv as a monitor
i'll give that a flash when i set the spare watch up, iver re-flashed the demo and packed the other up to send back. quite impressed as they give you a returns label and a return address in the UK so should process quite quickly, then I can order another spare lol
perhaps they offer that in sweden aswell as i did see espressif has an office here
and big screen does not help as i have to move around so much then as i still have to be close
https://github.com/pungkula1337anka/ESPHome/blob/main/SwipeGestures2.yaml
BOOM
there ya go, works perfect
7 pages
im getting pretty ok at this code thing.
(i work with tape for a living, never worked with computers)
You are indeed ! Somewhat of an expert ๐ work with tape? In what way ?
haahaha why does everyone think its so strange
i cover huge forest machines with tape before they get spray painted.
its fun. but kind of dangerous to cliimb around on them when i cant see (which is part of reason why i cant walk now)
but have been doing it for over 15 years
Oh wow lol! I don't think I've met a tape technician before. That must be quite a challenge not being able to see. Well you certainly get on with stuff despite everything! And now an esphome wizard too lol.. my pc has decided to be a pain.. so I'm currently on my phone.. which I hate using lol
ive used about 506.25 kilometers tape, thats like london and back from northern sweden haha
lol tape technician thats a good one i'll start calling it that
that sucks..its fun when stuff brakes huh..
That's a lot of tape lol... normally I would agree stuff breaking is fun.. but this is stopping me playing lol.. and it's the long boring stuff like hard disk scans and cpu and memory tests which take FOREVER ๐
just going to tryout the big swiping sensation!! need to do a bit of page renaming first, but got the other watch flashed and back to how it was
just so i get it the right way round lol. is right swipe, swiping from left to right ?
sussed it! works perfectly, well done bud thats a great bit of work easy now to apply that to any touchscreen
hahaha yeah you cant imagine how hard i had to think to get that right, swipe right is left? left is right?Hmmm haha
thanks im glad i could help you for once!
gonna try it out on the box tomorrow i think
(i actually had to remove the touch from it it, it brought to much trouble, but ready to try again)
there is a nack with getting it to keep working and the voice, have you got the version with a battery base?
yup, and i kinda ready your little guide there but it was to much reflashing i think
should probably get the config ready and dont touch it every 5th minute haha
yeah, the other time it stops is if you remove power, so i just keep a battery in it and power it from the base so the battery is always on
oooh okay!
mine does get empty sometimes.
I have been trying to get it to talk when the battery is low but its been harder than i thought, i can just use my stereo instead like with my phone (cause if it gets empty battery i can never find it again haha)
would love to be able to do
curl https://mydomain.duckdns.org:8123/local/sound/file.mp3 | aplay
or similar but have been unsuccessful
i've actually dusabled all audio on my box now, in favour of using the touch screen. 90% of the time i'm in arms reach of it , its quicker to just tap the screen to turn stuff on and off, ive divided the screen into a 3 x3 grid of binaries overlayed over the home page view , and just tap in the right place... no visible buttons,and next i will . by using the magic of the duck , make a couple of swipe screens for more specific control like heating etc ๐
i read somewhere that disabling the speaker is not as easy as expected
what's the goal ? what are you wanting it to do ?
just don't have the speaker component in the yaml ๐
i dont think that works when editing the original "official" yaml.
but i guess we should have created our own from scratch ^^
yes , i'm going to do away with all the substitutions, and the phases, and all the extras that are'nt really required, they just just make it over complicated and over engineered IMHO
i agree
the first "version" of my swiping gestures i took many ideas from the va phases and draw_display script.
it was crazy long and did not work . ended up much better and more simple to do it like my brain wanted to
the same with the standard VA firmwares, way too much going on , the way that the webinstaller works , for people buying these who don't know ESPHome too well I think is too limiting, yes it flashes the device and yes it will work, but it imports a minimal config to the dashboard, which is of no use to anyone and it uses the packages. I think pulling down the full config or at least having the option to would be much better and also prompt people to 'have a go'
agree its confusing and limiting
and it's as simple as them just adding a flag to pull down the full yaml or a different yaml
I setup web tools as a test , to figure out how it works, and its really straight forward to do
on a unrelated subject, do you think i can use a BT proxy or similar to notice if im in the bedroom?
I find it pretty annoying to have to run my goodnight script before being able to control the bedroom tv (otherwise it controls living rooom)
i got quite a few esp unused
the box may be able to do it as it's got 16mb PSRAM so deffo worth a blast
so glad we got connected, i have not seen a single person in soon 30 days the isolation can be pretty rough for the mind
yes, i only see my wife and she works long hours and sleeps long hours, so I spend a lot of time on my own inside, it's great to have plike minded people to natter and mess around with toys ๐
one more icon to go, then i can flash the finished watch...
AMD cards not that fast at stable diffusion...
oh you're doing some fancy graphicals... nice!
haha yeah i used to do them in paint but with this monster compuiter and linux i realized its 2024
haha yes , ive just used mdi icons .. because .. well i'm lazy lol
i noticed you did!
i tried that at first but they did not appear that good in size 100 lol
i hope i can have this many pictures
looking at the space and ram used so far on my build, it's hardly using anything so far
RAM: [= ] 11.3% (used 37152 bytes from 327680 bytes)
Flash: [== ] 20.9% (used 1701261 bytes from 8126464 bytes)
thats great news this is going to be amazing i think
it will probably not be a good copy paste yaml for anyone else though when everything is huge
lol , yeah ... i'm up to 1229 lines....
a question for the genius duck. at the moment i swipe to the left from the home page to go to my different pages and then right to go back, how much work is it to also have it so i can scroll to the right from the home page? is it a case of adding more globals and then the lamda to match the pages
hmm.. let me think about that while eating
i thought about a similar case when doing the gesture, which was if it should stop at page end or continue back at page 1.
or was that what you meant?
so it can be endlessly swiped?
I kinda like to have it stop, that way you can blindly swipe and know where you'll end, kinda like first page and last page is like "bookmarks"
if thats what you want its really easy, even easier than adding another page
when you got everything added already if you look at the code, what it basically does is:
- check what page your on.
- change page.
- change the current_page variable to the correct page.
ahh no i was thinking to have my control pages by swiping one way and then stats/stus pages by swiping the other
oh... hmm
but i still think its about the same work as adding a new page maybe
it would still be those 3 same steps as above. (plus adding the pages ofcourse)
its all in the first line that checks what page your on
i dont thinkk its neccesary to add more globals
ah ok gotcha .... i might give it a whirl later ... cheers for the pointers
if you think the code looks scary i would suggest copying this and adding it in the middle of the code (just change the page numbers and make sure you paste it in at the right direction (left/right)
} else if (id(current_page) == 6) {
id(screen).show_page(id(page5));
id(current_page) = 5;
it does not need to be in the correct order so just paste it in the middle will simplify
if you run into problems im here (:
cheers buddy , i will take a look ๐
flashing this is exciting
RAM: [= ] 11.3% (used 37072 bytes from 327680 bytes)
Flash: [=== ] 32.7% (used 2658521 bytes from 8126464 bytes)
Building .pioenvs/watch/firmware.bin
Creating esp32s3 image...
Successfully created esp32s3 image.
esp32_create_combined_bin([".pioenvs/watch/firmware.bin"], [".pioenvs/watch/firmware.elf"])
Wrote 0x299240 bytes to file /data/build/watch/.pioenvs/watch/firmware-factory.bin, ready to flash to offset 0x0
======================== [SUCCESS] Took 128.84 seconds
wow you can truly fit alot on there
thats like 10 images
OMG haahahha so nice
display:
....
# -> PAGE 1 <- #
- id: page1
lambda: |-
if (id(total_power_lights).state < 50) {
it.image(0, 0, id(light-duck_img));
} else {
it.image(0, 0, id(night-duck_img));
}
i used the power template i sent you, so it checks wether its low power usage, it lights up, and if its high power usage it turns off the lights and changes image
this turned out so good
so same script to turn on off based on power
oh thats cool , I still need to check that out too.
and double tap any page for VA and hold down to trigger the script set for each page.
would have been super if it could vibrate when hold down enough long to trigger script but it works
yes , i was looking at the haptic motor yesterday , thinking oh this should be easy ... it's just a motor on 2 wires... can just turn it on and off.... ohhhh no this thing is incredibly smart lol and the datasheet is like reading 'war and peace' it has a library built in of over a 100 different pulse patterns and alsorts of funky stuff... so is not a case of switching a GPIO on and off unfortunatley
apologise if my responses are slow , despite having notifications in discord on , i dont get any for this thread, so if you wanted to just DM then at least a conversation could flow a little better and also the world and his dog wouldn't see our struggles lol
hahahaha i dont have any notifications either.
and its pretty strange we only had one person pop in haha
yeah i know the haptic is advanced, guess we have to wait for someone to replicated the component to esphome.
messing around with
action:
- service: esphome.watch_va_start
data: {}
- wait_for_trigger:
- platform: conversation
command:
- {{ variable }}
kinda fun
now you're getting advanced lol ... what does it do lol
hahaha i have no clue but it is saying its done
trying to achieve something like
1 tts "when do you want to wake up"
2. start VA
3 say a time
4 set wakeup for that time
but mainly messing around,
did you know about conversation_id
so you can keep the conversation going with the assist
nope, i have done nothing at all on the HA side, not even started looking into it lol... i'm way behind with this stuff
god i hate the lid for the micro usb everytime i close it, it takes me half an hour to open lol
yes, it's a fiddly little thing lol
and i really wish it was usbc but hey cant's expect too much for the money
i figured the swiping both sides from the home screen out ๐ that was easier than i thought it was going to be. cheers for sorting that out. i can dump all my navigation buttons now
next iteration:- step up to using LVGL ... boom! not started even looking at this yet
https://deploy-preview-3678--esphome.netlify.app/cookbook/lvgl#
i thought you might like a widget in your life ๐คฃ
the component is still a PR at the mo, but there is a thread dedicated to it in ESPHome discord
makes me want to tear the 7" off the desktop build
im having such an insane bad pain day i dont know what to do
have you got good meds ?
oh man that sucks. i thought it was bad in the UK for waiting times. if it's bad can you get anyone to take you to ER/A&E or do you have walk in services that someone could see you ?
nope, my work is looking into private care but its 5000 euro
nightmare..so all you can do is take over the counter pain killers and make it as comfy as possible, have you tried packing ice around it
hi, is this thread dead without me? ๐
did you manage to get lvgl working?
i tried adding a wifi bar icon
but it whined about a missing project name
really nice score on the tjeck watch much cool in there.
dont know if i can put it together before i leave..
and while fishing i realized the double wifi did not work shame
after implemenrting lvgl on both box and watch ... now thats all we'll use lol
watch.enableBattDetection();
so... after all this time..thats it? lol
looking at the schematics etc, the AXP also manages the power for the haptic, the backlight , the gyro/accelerometer and the power button to some extent. but to start a battery level would be great./
I tried adding the sensor from the original yaml we found for running on Arduino but it wouldn't compile, complaining that the platform didn't exist or words to that effect.
yeah okay
kinda feel like dont want to start up any long projects as i leave in like 24 h and iwll be gone 15 days
but i think all we need was on that github
that T Watch library github, is there somehow one can include that library in the yaml ? or is it neccesary to create custom componenets out of every single function not entirely sure what best approach