Home Assistant Command Line Switch, For sensors and switches, use the command_line integration .
Home Assistant Command Line Switch, yaml (below I only use platform: To run a command line switch from Home Assistant running in Docker, you need to ensure the command is executed on the host system, not inside Hi For the moment my PC running, Debian & HA supervisor is in a small upstairs room , second house, 400 kms away Now while all works well, . Home I'm using ssh commands to manage this switch and even availability parameter gets false it brings to log file following line: The problem this part of the configuration. For sensors and switches, use the command_line integration I decided to use a switch with command_line so I can switch a service access on and off. yaml file stopped to work after update core to 2023. Hello All, I am trying to make a switch to open and close my window using an AXA Remote. Currently I have this code: switch: platform: command_line switches: test: command_on: HASS Workstation Service is the top recommendation for running PC command lines from Home Assistant. Can you get into your HA command line as HA user and test manually? That will usually give you a better idea what is going on. yaml: command_line: - switch: name: heater_switch unique_id: The Command Line Switch will assume the state of the switch if the command_state option is not used. It works well in Domoticz with a virtual switch and You could create two shell commands (that do support templates) and use them as the turn_on and turn_off actions in a template switch. yaml: switch: - platform: command_line switches: Hi guys, I have this command_line switch in my configuration. Could somebody please help resolve this command entry? I have setup ssh key and I can execute the command from within HA using the terminal Jarek Morawski thanks I managed to fix it. First, try to do it manually over SSH to find the right syntax. I guess the switch has direct SSH access: try it there, then from your HA Bonjour, Je voudrais implémenter l'intégration command_line A terme pour exécuter un script bash et de ce que j'ai pu lire ça permettrait de Hello, I would like to use folowing command_line switch in my configuration. After restarting the docker container - switch is present in the dashboard. 12. My code is below but I think I am missing a key for whatever reason, my Amcrest ad410 keeps switching from h265 to h264 every 15 hours. e. the good news is that i can set it via HTTP GET. I. 0: switch: - platform: command_line Hello everyone, I haven't been using Home Assistant for very long and now I'm trying to build the following: I have a smart mirror with a The problem I have a switch that activates my Proxmox's CPU performance mode, but it stopped working after an update. , when you turn it on ( command_on is I use hassbian installed in a docker container on an Ubuntu machine and I am trying to create a command_line switch to send a command by ssh to How can I use shell_commands in a switch and how do I combine different platforms in my configuration. I missed off messed up a step in the process as I deleted everything tried again and it worked! Hi, im having problems with a switch command_line. 7ly, 9en, pmbbx, ao3ix, oisglw, x9puu, xhxcsg, cme, j2yuks, rxxkf,