FulcrumDelta

Creating an MQTT Battery Sensor in Home Assistant

Home Assistant provides battery readings for devices with the official companion app installed. We can replicate this functionality for other devices using the MQTT integration. Prerequisites File Editor or some other way to edit your configuration.yaml The MQTT Integration installed An MQTT broker server (can use mosquitto broker addon if you wish to host locally) Creating the Sensor(s) Assuming you already have the MQTT integration configured with an MQTT broker server, you can add the following straight into your config.
2024-08-29

Setting Up SSH Jump Hosts

Want to connect to a machine that isn’t directly exposed to the internet? You can achieve this by using the jump host feature built into ssh. Command line argument You can use the -J option with SSH to specify a jump host directly in the command line: ssh -J jump.example.com dest.example.com This command routes your SSH connection through the jump host to reach your final target. Agent Forwarding By combining this with the -A argument, you can allow the jump server to use your local machines ssh agent to authenticate with the target server.
2024-08-23