In my previous video on my Landroid robot lawning called 'Roger', I mentioned a Homebridge plugin that allow control using Apple's Homekit. While I did post an update on how to apply a fix, the plugin again has failed and the developer has moved on. In this video I go through the very detailed instructions on how I got my Landroid into Apple Home control using FHEM and Homebridge. If you want to follow this, you will need to follow the detailed instructions below, and use the video for reference. It works for me. Good luck if you are trying to do the same!
Now due to the character limits here, I've had to strip back the instructions, so here goes:
OVERVIEW
Basic overview from Normen, the original Homebridge Landroid Plugin Developer.
Source: github.com/normen/homebridge-...
INSTALLING FHEM
Source: fhem.de/#Installation
and debian.fhem.de/ (click on "The easy way: use apt" in the menu on the left)
You need to use a terminal (either application or the Homebridge Terminal Window). At the prompt change to su.
Terminal commands:
su
wget O debian.fhem.de/archive.key | gpg --dearmor | sudo tee /usr/share/keyrings/debianfhemde-archive-keyring.gpg
Add repository to /etc/apt/sources.list by adding the following line to the bottom of that file. Use Pico or some other terminal based text editor to add:
Text to enter:
deb [signed-by=/usr/share/keyrings/debianfhemde-archive-keyring.gpg] debian.fhem.de/nightly/ /
Update your package administration:
terminal commands:
apt update
terminal command: apt install fhem
terminal command: sudo service fhem start
(alternatively: sudo service fhem stop)
INSTALL HOMEBRIDGE-FHEM PLUGIN
Follow the video for this!
CONFIGURE FHEM TO CONTROL YOUR LANDROID
Source: wiki.fhem.de/wiki/M%C3%A4hrob...
Log into your FHEM web screen application:
URL: homebridge.local:8083/fhem
Using the white command entry box at the top of the FHEM web screen, enter your configuration commands, and hit enter/return to activate them.
Commands:
defmod MQTT_Worx MQTT2_CLIENT xx
attr MQTT_Worx connectFn { use LandroidUtils ;; Landroid_connect ( $NAME , "worx" , 1 )}
Next configure your Landroid username and password. NB: you must have first set this up on your mobile device in the Worx Landroid mobile APP. The username and password used here, is the one you established in that app.
Commands:
attr MQTT_Worx username your_actual_worx_username
set MQTT_Worx password your_actual_worx_password
set MQTT_Worx connect
set MQTT_Worx attrTemplate worx_landroid
define Siri Siri
define HomeKit room
Now best to watch the video on home to configure these elements.
First, add your Mower to the HomeKit room.
Next set a SiriName for your mower (you can set any name you like, but cannot include any spaces!)
Set your GenericDeviceType for your Mower to "Switch"
Add the following text to the bottom of your Mower's SetList (NB: do not delete what is already there!):
PartyModeOn:noArg $DEVICETOPIC/commandIn {"sc":{"m":2}}
PartyModeOff:noArg $DEVICETOPIC/commandIn {"sc":{"m":1}}
TurnOffMower:noArg $DEVICETOPIC/commandIn {"cmd":7}
SafeHome:noArg $DEVICETOPIC/commandIn {"cmd":9}
Finally, we need to set up the HomeBridgeMapping for your Mower, by adding the following text to that attribute:
clear
Switch#On=mowerStatusIndex,default=0,values=/2|3|7/:1,cmds=0:pauseMower;;false:pauseMower;;1:startMower;;true:startMower
BatteryService#BatteryLevel=batteryPercent
BatteryService#StatusLowBattery=batteryPercent,threshold=9,values=0:BATTERY_LEVEL_LOW;;1:BATTERY_LEVEL_NORMAL
BatteryService#ChargingState=batteryCharging
ContactSensor(Home)#ContactSensorState=mowerStatusTxt,default=1,values=/Home/:0
MotionSensor(Returning)#MotionDetected=mowerStatusIndex,default=0,values=/30/:1
ContactSensor(Error)#ContactSensorState=mowerErrorIndex,default=1,values=/0/:0
LeakSensor(Raining)#LeakDetected=mowerErrorIndex,default=0,values=/5/:1
Switch(Party)#On=mowerActiveIndex,default=0,values=/2/:1,cmds=0:PartyModeOff;;false:PartyModeOff;;1:PartyModeOn;;true:PartyModeOn
Switch(Edge)#On=mowerStatusIndex,default=0,values=/32|30/:1,cmds=0:pauseMower;;false:pauseMower;;1:startBorderCut;;true:startBorderCut
Switch(Pause)#On=mowerStatusIndex,default=0,cmds=1:pauseMower;;true:pauseMower,timeout:100
Switch(Return)#On=mowerStatusIndex,default=0,values=/32|30/:1,cmds=0:pauseMower;;false:pauseMower;;1:stopMower;;true:stopMower
Switch(Safe)#On=mowerStatusIndex,default=0,cmds=1:SafeHome;;true:SafeHome,timeout:100
Now you need to store these settings by clicking on the 'Save Config' hyperlink at the top left of your FHEM web screen application.
RESTARTING HOMEBRIDGE & USING APPLE HOME
Follow the video for the remainder of the install.
Hope this works for you. Good luck!!
Негізгі бет Ойын-сауық Updated: Landroid on Apple Home using FHEM and Homebridge
Пікірлер