HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
51 stars 12 forks source link

Separate command and config services #54

Closed nagyrobi closed 3 years ago

nagyrobi commented 3 years ago

Please have a look at this. It implements 2 separate services.

Example for settings: Set GPIO:

service: openhasp.set_configuration
target:
  entity_id: openhasp.plate_3
data:
  config_topic: config/gpio
  parameters: '{"config":[197658,263456,329249,655628,655886,656155,0,0]}'

Set Idle2:

service: openhasp.set_configuration
target:
  entity_id: openhasp.plate_3
data:
  config_topic: config/gui
  parameters: '{"idle2":0}'

Example for commands: Reboot:

service: openhasp.command
data:
  keyword: reboot
target:
  entity_id: openhasp.plate_3

Next page:

service: openhasp.command
data:
  keyword: page
  parameters: 'next'
target:
  entity_id: openhasp.plate_3
dgomes commented 3 years ago

I think you should reopen 😬

nagyrobi commented 3 years ago

Can you merge this also in the push_image branch so we can test them together?