Skip to content
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

[Feature Request] Wait to run "select" entity type ? #595

Closed
JBaptisme33 opened this issue Nov 25, 2022 · 10 comments
Closed

[Feature Request] Wait to run "select" entity type ? #595

JBaptisme33 opened this issue Nov 25, 2022 · 10 comments
Assignees
Milestone

Comments

@JBaptisme33
Copy link

FEATURE DESCRIPTION

Hi,

thanks for hard work, it's impressive and really unsefull.

Is there a way to use a select entity ?
image

Or use a template into entities as workaround to apply each of available modes (Low, Medium, Hard), an entity for low mode, another for Medium, etc....

Another, thanks for work !

ADDITIONAL CONTEXT

Impossible to use a select entity into NS Panel

PANEL / FIRMWARE VERION

EU

@JBaptisme33 JBaptisme33 changed the title [Feature Request] [Feature Request] Wait to run "select" entity type ? #594 Nov 25, 2022
@JBaptisme33 JBaptisme33 changed the title [Feature Request] Wait to run "select" entity type ? #594 [Feature Request] Wait to run "select" entity type ? Nov 25, 2022
@joBr99
Copy link
Owner

joBr99 commented Nov 25, 2022

Hey, can you send a screenshot from HA dev tools of that entity?

@joBr99
Copy link
Owner

joBr99 commented Nov 25, 2022

No worries, got it

image

@joBr99 joBr99 added this to the 3.6.X milestone Nov 26, 2022
joBr99 added a commit that referenced this issue Nov 26, 2022
@joBr99
Copy link
Owner

joBr99 commented Nov 26, 2022

Hey, latest dev version should support select entities.

Just update to main in HACS and restart AppDaemon, no need to update the firmware.

https://docs.nspanel.pky.eu/faq/#how-to-upgrade-from-a-release-to-the-current-development-version

@joBr99 joBr99 closed this as completed Nov 26, 2022
@joBr99 joBr99 self-assigned this Nov 26, 2022
@joBr99 joBr99 modified the milestones: 3.6.X, 3.7.X Nov 26, 2022
joBr99 added a commit that referenced this issue Nov 26, 2022
@JBaptisme33
Copy link
Author

Hi,
Faster than you is impossible...

I've tried last main version.
Hum, not shure to understand how to use this entity ?

       entities:
         - entity: input_select.heated_seat_left
         - entity: input_select.select.heated_seat_left

But not work, i've error not found check, apps.yml
I need to create an input_select entity to use my select I'm not shure to understand ?

@illuzn
Copy link
Contributor

illuzn commented Nov 28, 2022

Shouldn't it be:

entities:
- entity: select.heated_seat_left

and make sure to be running main branch and latest firmware.

@JBaptisme33
Copy link
Author

I think there is an issue into last commit for shuffle:

2022-11-28 10:10:29.203054 WARNING nspanel-1: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/appdaemon/app_management.py", line 1026, in check_app_updates
    await self.init_object(app)
  File "/usr/local/lib/python3.9/site-packages/appdaemon/app_management.py", line 321, in init_object
    modname = await utils.run_in_executor(self, __import__, app_args["module"])
  File "/usr/local/lib/python3.9/site-packages/appdaemon/utils.py", line 337, in run_in_executor
    response = future.result()
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/conf/apps/nspanel-lovelace-ui/nspanel-lovelace-ui.py", line 4, in <module>
    from luibackend.controller import LuiController
  File "/conf/apps/nspanel-lovelace-ui/luibackend/controller.py", line 331
    apis.ha_api.get_entity(entity_id).call_service("shuffle_set", shuffle=!cur_suffle)
                                                                          ^
SyntaxError: invalid syntax

Can you rollback or make tag without this commit to test the select feature ?

@joBr99
Copy link
Owner

joBr99 commented Nov 28, 2022

fixed

@JBaptisme33
Copy link
Author

JBaptisme33 commented Nov 28, 2022

Hi,
Main branch is ok now, indeed.
It seem start working.
I have select button, with actual value (Off in my case). When I click i don't have available choices.

Here appdaemon logs if it can help ?

2022-11-28 18:14:25.647056 INFO nspanel-1: Received Message from Screen: event,buttonPress2,popupLight,bExit
2022-11-28 18:14:25.648119 INFO nspanel-1: Button Press Event; entity_id: popupLight; button_type: bExit; value: None 
2022-11-28 18:14:25.649182 INFO nspanel-1: Started rendering of page 2 with type cardEntities
2022-11-28 18:14:25.650360 INFO nspanel-1: Sending MQTT Message: pageType~cardEntities
2022-11-28 18:14:25.666911 INFO nspanel-1: Sending MQTT Message: entityUpd~Tesla~1|1~input_sel~select.heated_seat_left~���~17299~k2000 Heated seat left~Off~text~sensor.battery~���~17299~Batterie~93 %~shutter~cover.trunk~���~17299~Coffre~���||���|enable|disable|disable~switch~switch.heated_steering~���~17299~Volant chauffant~0~switch~switch.sentry_mode~���~17299~Sentinelle~0
2022-11-28 18:14:27.052772 INFO nspanel-1: MQTT callback for: {'topic': 'tele/nspanel_entree/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,buttonPress2,select.heated_seat_left,button"}'}
2022-11-28 18:14:27.054265 INFO nspanel-1: Received Message from Screen: event,buttonPress2,select.heated_seat_left,button
2022-11-28 18:14:27.055811 INFO nspanel-1: Button Press Event; entity_id: select.heated_seat_left; button_type: button; value: None 
2022-11-28 18:14:29.089812 INFO nspanel-1: MQTT callback for: {'topic': 'tele/nspanel_entree/RESULT', 'wildcard': None, 'payload': '{"CustomRecv":"event,pageOpenDetail,popupInSel,select.heated_seat_left"}'}
2022-11-28 18:14:29.090217 INFO nspanel-1: Received Message from Screen: event,pageOpenDetail,popupInSel,select.heated_seat_left
2022-11-28 18:14:29.091726 INFO nspanel-1: Sending MQTT Message: entityUpdateDetail2~select.heated_seat_left~~17299~select~Off~~

EDIT: It seem related to TESLA integration, not you frontend. I will check more depthly

@joBr99
Copy link
Owner

joBr99 commented Nov 28, 2022

screenshot from HA Dev tools would help

looks like the provided options are empty

image

@joBr99 joBr99 reopened this Nov 29, 2022
@joBr99
Copy link
Owner

joBr99 commented Nov 29, 2022

there was something missing, which caused the options to be empty

07f8a34

Update to main in hacs again & restart appdaemon

@joBr99 joBr99 closed this as completed Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants