laluz742 / node-red-contrib-nspanel-lui

A Node-RED backend implementation for the NSPanel Lovelace UI firmware.
Apache License 2.0
12 stars 8 forks source link

Entities Page only lets create 4 items (US portrait) #146

Closed danho-san closed 9 months ago

danho-san commented 10 months ago

Lovelace UI docs says 6 entries should be possible.

EntitiesPage

laluz742 commented 10 months ago

Hey @danho-san,

if you're using the Entities Page, it has only 4 possible items (see here), which matches the panel tft firmware. Card Grid may have up to 6 or 8 for the extended version, respectively.

Happy New Year, Sebastian

danho-san commented 9 months ago

Hi @laluz742, yeah, thanks for hinting. My bad. I have the US Version, so the entities page looks quite empty with only 4 lines. Grid is okay-ish to use. Would you have any idea, why my setup ignores touch and swipe? I seethe icon highlighting, but the configured page does not load ..

laluz742 commented 9 months ago

Hey @danho-san , so now I understand you're using the US version in portrait mode. You're right, it should support up to 6 items. Will see, how to solve this.

Swiping will trigger the navigation events (Back, Next), thus you need to assign these events to actions on the events page like so: grafik

Cheers, Sebastian

laluz742 commented 9 months ago

Hey @danho-san ,

I have attached an intermediate version for you. Just unzip it and you can install it manually by uploading the tgz-file in the Manage palette on tab Install. Within the NSPanel configuration node you should find a dropdown panel type. When switching to US portrait, entites page will offer you 6 items.

Cheers, Sebastian

grafik

node-red-contrib-nspanel-lui-0.0.1-alpha.51.1.tgz.zip

danho-san commented 9 months ago

Hi @laluz742, whow, thanks a lot! That's very nice. The Node now let's me configure 6 items. But the panel only displays four, still.

BTW: Any idea why icon touches don't trigger the connected page? Also does not work for the nav buttons.

EntitiesPageWith6Entries ![Uploading IMG_20240106_140628.jpg…]()

danho-san commented 9 months ago

![Uploading IMG_20240106_140628.jpg…]()

laluz742 commented 9 months ago

Hey @danho-san ,

I'm sorry for your inconvenience, I forgot to include to patched files in the last package: node-red-contrib-nspanel-lui-0.0.1-alpha.51.2.tgz.zip

With regards to your second question: I can't really help you, since your images did not upload :-(

Sebastian

danho-san commented 9 months ago

Hi @laluz742, no problem at all. Thanks for the tgz! Works now! =D The pics above were just from the Entities page with four lines.

As for the navigation thing. Here's how i did the configuration. But tapping on the respective icon in the gid page does not load the Entities page. ![Uploading NavIssue.PNG…]()

Using the injects to the Navigation nodeworks, though. With that I can load any page.

danho-san commented 9 months ago

NavIssue

laluz742 commented 9 months ago

Did you try using a Button instead of Text?

danho-san commented 9 months ago

Changed it to button. No effect.

laluz742 commented 9 months ago

Ok, it's because of the panel firmware does not support touch release events for entites page (that is not firing any events) but for popup types like Shutter, Light, Fan, Input Selection or Timer. Filed a feature request 1128 to the firmware developer to support Buttons.

danho-san commented 9 months ago

Thanks @laluz742! Any idea why the nav icons on the top left and right also don't work to jump to pages?

laluz742 commented 9 months ago

As the descriptions so far have not been very detailed, I can only guess what the actual issue might be.

The first problem: If you select Button: The button is on the right-hand side next to the text (magenta). The text is purely a label and not interactive. Is this a possible solution? grafik

The second problem: I can only guess here. Perhaps you would like to take a little more time to describe your settings in more detail, what exactly you are doing, what should happen etc. or to upload your images in full. I cannot find any software issues so far.

danho-san commented 9 months ago

Thank for the hint. Tried it. See flows.zip video Also pls find my flows attached. I was unsing your example flows and went from there.

laluz742 commented 9 months ago

Hey, you're panel config is wrong. The full topic must include the placeholders like %topic% and %prefix% as configured on your panel: grafik

Not knowing you're setup exactly, but your full topic should read ui/panels/%prefix%/%topic%/. Please have a look into the panel mqtt config. See here also.

The %topic% is substituted with your device topic (NSPANEL) specified and %prefix% placeholder will be substituted in the mqtt handler with cmnd, stat and tele respectively.

You're experiencing these issues, since the nodes cannot receive the results, but can send commands though.

Sebastian

danho-san commented 9 months ago

Hi! thanks for spotting this. Changed that. mqttCfgPanel mqttCfg The button press does not effect the page change. However, the event can be seen in MQTT Exporer. mqttExpButtonPress

danho-san commented 9 months ago

Hi again, I created a workaround. I subscribe to the RESULT topic and send a message to the nav node. workAround Scan the payload for the panel id to switch to and wrap it in a message tothe Nav node.

if(msg.payload.includes("soc.0")){

return { topic: 'nav', payload: "---Energy---" };

}else return;

That works and I can switch to the desired panel via button.

laluz742 commented 9 months ago

Hey, please specify a valid time like 04:00 for the update task in your panel config. I will fix this parsing issue: grafik

danho-san commented 9 months ago

OK. Did that.

laluz742 commented 9 months ago

Then you should restart the flow. Working now ?

danho-san commented 9 months ago

Nope, unfortunately not.

laluz742 commented 9 months ago

Would you be so kindly and send me your current flow?

danho-san commented 9 months ago

Sure. Here you go. (With the mqtt link in..) flows20240119.zip

One other thing: It feels like the US Version grid panel should sport 9 elements.

Cheers!

laluz742 commented 9 months ago

Sure. Here you go. (With the mqtt link in..) flows20240119.zip

One other thing: It feels like the US Version grid panel should sport 9 elements. Grid8positions

Cheers!

see #151