Direct Command Calls to the PiX10Hub!The main difference for creating a direct call to the Pi is you only want the On item or Off items not both
So why would you wish one?
Well maybe you'd like to reboot or shutdown but don't wish to open PuTTY and a SSH session just to do that. or maybe you just dread using the terminal screen.
The shutdown command is usefull for when you would like to do a SD card back up so I'll show it.
1:First we need to open HA-Bridge and click on the Add/Edit tab which will open the window to add a device.
2: Add a name in the name field
3: Add a description (optional)
4: In the Device Type (optional ) select "Execute Command/script"
5: select the same for Map Type (Legacy)
6: In the On Items row select the same for the Type column
7: Under the Target item type
sudo systemctl stop homegenie.service 8: Then at the far right click Add to give us a ne on item line
9:Under the new Target item type
sudo shutdown 1 the one gives a 1 min warning and allows the bridge to service stop safely
10: Then at the far right click Add again to give us the next line
11: Under the Target item type
sudo systemctl stop ha-bridge.service12:Then at the far right click Add again (very important)
I most always forget that step!
13: Go back to the top and click Add Bridge Device which takes us back to the device page where you can manualy test pressing the On button.
14: Finally tell Alexa to discover devices.
If you don't feel comfortable saying Alexa turn on (the command) you can say Alexa activate (the command)
As a alternate to this you could add the call to the Off Item row instead of the On Item row.
If you did that the Alexa command would be Alexa turn off..... or Alexa deactivate......