marcfager / nspanel-mf

Custom HMI controlled by ESPHome for the Sonoff NSPanel. Includes media player card and home screen with weather data and clock. More to come.
215 stars 60 forks source link

How do I swipe to next page? #19

Closed Hellis81 closed 2 years ago

Hellis81 commented 2 years ago

First off, this is fantastic!

I have managed to set up home screen and lights screen as I want. Now I'm trying to set up lights2 or add any other screen to the right of Lights page?

I can't find where this order is set or where this is controlled.

marcfager commented 2 years ago

Hi, Glad to hear you liked it!

Change the following in the very end of the ESPHome page. If you change the number to 2, the second page will be enabled. You add the lights by populating entities in the Lights2-page (see Nextion page for exact names for the positions).

Enable 1 light page (up to 4 available)

    - lambda: id(disp1).send_command_printf("Lights.pages.val=1");