I was in the living room, putting back the (black) cover on the couch, I thought “I could do with a bit more light”, so I went to the office, opened a shell, run mosquitto_pub with a bit of json, and then back to the living room to see the LED bars turn from cycling rainbow to full white

and then when I finished doing stuff on the couch I went back to the office, and set the LED bars back to cycling rainbow

that's the normal way to deal with smart home stuff, right?

reshared this

in reply to Elena ``of Valhalla''

Ero in sala, stavo rimettendo la fodera (nera) sul divano, ho pensato “farebbe comodo un po' di luce in più”, quindi sono andata in studio, aperto una shell, lanciato mosquitto_pub con un po' di json e poi son tornata in sala e la barra a LED è passata da arcobaleno a bianca a piena luminosità

e poi finito col divano son tornata in studio, e impostato la barra di nuovo sull'arcobaleno

è il modo normale di controllare la roba smart home, vero?

reshared this

in reply to christian mock

@christian mock having found the time to prepare some device that make this easier to do directly from the living room would be nice :D

the fact that I don't have a smartphone that is usually turned on (because its battery wouldn't last the whole day, so I usually turn it on when I leave the house and need it) makes this a more interesting exercise :D

#PinePhoneLife :D

in reply to christian mock

@christian mock I have an inkplate² that displays data (retreived via http from a local server¹, where it's saved by the same script that reads data from mqtt, so that it can only wake up every few minutes to update), but it has no buttons, so it's not really useful to control things

I also have a 2.8" display + touchscreen connected through some dupont cables to an ESP that I had started to play around and see if I could use it with micropython and maybe lvgl, and that looks promising, but I haven't had the time to make it work yet :D

¹ not a rasperry, but an olimex olinuxino, but the same category of device
² ESP + epaper display

in reply to cate

@cate la maggior parte dei miei device sono degli ESP32-C3-DevKit-Lipo con attaccati dei sensori, che mandano i valori via mqtt in modo abbastanza grezzo e vengono letti da uno script python tenuto assieme con la duct tape che li salva in un rrd e genera dei grafici (visualizzati in una pagina html statico).

poi c'è la barra a LED RGB + W¹, controllata da un altro ESP32-C3-DevKit-Lipo che riceve comandi in un json custom, e ho intenzione di metterne in giro almeno un altra

poi abbiamo due (2) prese smart che inviano i dati di consumo in un formato compatibile con HA, ma ancora non ho avuto tempo di leggerli e farci cose, e una non è ancora neanche stata attaccata (sono state comprate per decidere quale sia il primo frigo da cambiare, poi non so se le useremo ancora)

prima o poi ho intenzione di cambiare il modo in cui gli ESP32-C3-DevKit-Lipo mandano i dati, per renderlo compatibile con HA e tutto il resto del mondo, e di scrivere qualcosa per leggerli che abbia un po' meno duct tape.

¹ nel senso che sono una striscia RGB e una strisca W comprate separatamente, incollate sulla stessa base di alluminio e controllate dallo stesso device

@cate

Questo sito utilizza cookie per riconosce gli utenti loggati e quelli che tornano a visitare. Proseguendo la navigazione su questo sito, accetti l'utilizzo di questi cookie.