home-assistant-ecosystem / home-assistant-cli

:computer: Command-line tool for Home Assistant
Other
446 stars 69 forks source link

How to run a scene with hass-cli? #338

Open jbrepogmailcom opened 4 years ago

jbrepogmailcom commented 4 years ago

Excuse me for being total noob. May I ask for example how to run (a tuya) scene by hass-cli? I have scenes visible in Home-Assistant.

Thank you very much, Jan

lwille commented 3 years ago

found this example here, works for me:

hass-cli service call --arguments entity_id=scene.fishtank_feeding scene.turn_on

where fishtank_feeding is the Entity ID of the scene, scene.turn_on is the service to be called (there's also scene.apply, read the docs for more info about the difference here).