Thanks for the suggestion, I tried it but hass doesn’t seem to like it. I’m beginning to wonder if storing the command in a separate file and calling it somehow would work better?
Here’s the output from the configuration validation tool:
Invalid config for [switch.command_line]: expected a dictionary for dictionary value @ data['switches']. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.command_line/
Here’s the config code:
switch:
- platform: command_line
switches:
BRLIght:
command_on: '/usr/bin/curl -i "http://192.168.1.8/messages" -H "X-Requested-With: curl" -d ''{"format":"raw","freq":38,"data":[6881,3458,904,815,904,815,904,2537,904,2537,904,904,904,2537,904,904,904,815,904,815,904,2537,904,815,904,815,904,2537,904,904,904,2537,904,815,904,2537,904,815,904,815,904,2537,904,904,904,904,904,904,904,815,904,815,904,815,904,2537,904,2537,904,904,904,2537,904,904,904,815,904,2537,904,815,904,2537,904,815,904,815,904,2537,904,904,904,761,904]}'''
command_off: '/usr/bin/curl -i "http://192.168.1.8/messages" -H "X-Requested-With: curl" -d ''{"format":"raw","freq":38,"data":[6881,3341,873,873,873,873,873,2537,873,2537,873,873,873,2537,873,873,873,873,873,873,873,2537,873,873,873,873,873,2537,873,873,873,2537,873,873,873,2537,873,873,873,873,873,2537,873,873,873,873,873,873,873,873,873,873,873,2537,873,2537,873,2537,873,873,873,2537,873,873,873,873,873,2537,873,2537,873,2537,873,873,873,873,873,2537,873,873,873,787,873]}'''
friendly_name: Bedroom Lights