-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSpanel color wheel script problem #1
Comments
Ah, yes, sorry, I forgot to check that script in. Problem is that ESPHome can't send an array of numbers to home assistant service, so you have to create a script that would accept those numbers as separate attributes. Here's the script:
|
Ok. I'll try this |
i tried this but it doesn't seem to work. i just added this to a script in home assistant but i dont seem to receive the values |
You could add some logging to the ESPHome script to see if you are getting back values from the C++ code, but other then that, it should work. Just heads up, I'm reasonably sure that there's a memory leak somewhere in C++ code, because NSPanel starts rebooting itself after a period of time when using this code. Unfortunately, I gave up on NSPanel and moved on to using Wink Relay instead, so I'm not planning on trying to fix it. |
So after adding logging and figuring out that the vallues werent correct (always 255) i was able to solve that however i still cant pass the values onto home assistant. pretty sure its a service/ script issue. |
i seemed to have had an issue with using the yaml file. now it works like a charm. |
Yeah, I haven't tried doing it in yaml files, but instead, just created a script in the UI. |
How did you resolve the issue with wheel? I am stuck on RGB wheel and can not find the solution. |
dimmer/brightness are completely seperate from the color wheel, ok so what i did when i couldnt figure this out is that i built some log debugging to try and find where the problem was. this is my code for the binary sensor, i added some logging (atleast i think i added it, maybe it was allready there)
|
you didnt forget to add the colorwheel file to the esphome root directory right? |
same script here but not responding.
No it is already there |
so the vallues are showing in the logger? |
To tell you the truth I am trying to integrate it to the EU version so I am suspecting that I am missing any point that is confusing me because this is the first week I am using ESPHome with Nextion editor.
Do I have to create a timer because I not using any timer? |
Yes you are right I added extra page that I exported from yliavolodin HMI and imported to EU version HMI. |
what is that on release at the end? it seems very out of place, |
the extra line in the program.s but please try to start the display and tap arround on the colorwheel you need to figure out if the esphome is even getting color vallues and check the logs for these (make sure they are not all the same) |
you mean this part? offset: -27 offset: -91 I tried also without minus also with minus but still same. Sometimes when I am not sure what I am doind I simply try every option heheheh |
yea what is the on release doing there? its a sensor not a binary sensor, to me that seems wrong. why is it there? also please format your code correctly on here, i cant tell if spacing is wrong, because yes that matters. |
What code you are using on our script my_timer? |
its just a timer to turn off the display |
also just checking but you didnt forget to add the includes right?
|
yes they are added also
|
ok, well let me know what the logs say otherwise i cant do much |
I am stuck on timer because I never use any so esphome is not letting me load the file you gave me without adding timer script. |
then get rid of the line... |
ok doing it now |
here is the log I am getting with my current codes [02:26:17][D][homeassistant.text_sensor:017]: 'sensor.nspanel_dev_temperature': Got state '25.7' |
sooo just litarally copy pasting everything wont work, you have to try and read it and see what every line is doing. this code should be correct
|
is this with the logging ? |
now I am loading the codes you just gave me. |
[02:31:51][D][binary_sensor:036]: 'nspanel-dev Color Wheel': Sending state ON |
mmm ok all 255 vallues meaning its not reading correctly |
Anyway thank you so much for your shared time but my colour wheel is still useless. |
it sucks because i had the same problem just cant remember what it was |
i know i had problems with the offset, but im not really sure |
no the colorwheel.h doesnt have errors as far as i can see |
paste your entire code here (leave out any personal info like wifi and stuff) |
i did actuelly make changes to the colorwheel.h ill try to redo it to make it compatible for you and you can try that |
this format is unreadible please use the "add code option" (select code than press it) |
this is the colorwheel.h that i use it has a small change in it im just not sure that it is the issue but i guess its worth a shot (if this doesnt work just delete it)
|
Here is the log using new colorwheel
|
also fix the offsets to be negative |
oh ok so now we are getting some vallues why is green 255 tho |
press around on every side of the screen what are the vallues? |
|
these are the results from wheel surface. |
Anyway thank you so much friend for you shared time, If you find out the solution in the next days please let me know. Thank you one more time. |
Hello,
I ve use your template to create my own interface for my NSpanel. Thank you for sharing your project.
I just have one problem : I don't understand this part:
You are calling a service script ? I have to create a script in my home assistant but with what elements ?
thx
The text was updated successfully, but these errors were encountered: