Skip to main content

Cold Turkey

Back from a holiday at Cairns. Yes, it was great, but seriously going back to my natural habitat after being out in the bush for a couple of hours can be a rather harrowing experience. People fear change, but they embrace holidays. Most find it a way of escaping the "real" world. They joke about how they like to maintain a permanent holiday, but I doubt they seriously mean it though. Some might survive a couple of years the most, but at some point of time, they will probably want to start doing something more along the lines of what they left behind.

So if you ask me whats the best thing about holidays other than the experiences? Its the fact that you know it is going to end and thats what makes it a plesant experience. Simply because you know it can't last forever. Of course there are different aspects to how true this statement is. You can join a tour from hell and each minute can be excruciating pain. I can vaguely remember a tour I've almost sucessfully blocked from my concious mind. I was rather young and sitting on a tour bus that did karoke on the long journey up through peninsular malaysia. I'm sure the older people on the tour might have had a blast, but it was truely something that I can have done without.


What is life without technology?

I've survived 6 days without a computer and internet access. In all honesty, its not a long time and most people can do without it for longer. In more honesty, I was dead ill for at least a couple of days, so my mind wasn't working anyway. Even if I did have access, I'd be doing all the wrong things and mucking up more that would have been effective.

I'm back and experiencing mixed emotions booting up my machine and checking my email. Going away makes you rethink about certain things. Making you look at things in a different perspective. What I discovered is that my machines are not running in an optimal state and I would need to rethink and rebuild. *sigh*

There is a lot to learn about the natural ecosystem as I have discovered in this trip. Like the name suggest, it is an eco-"system". This means lots of different elements living together and making the most of everything. This is going to be my new inspiration for building my new home systems.

There are a couple of examples which are rather inspiring especially when you can translate this to the computing world.

One type of tree in the bush is capable of cutting of the flow of sap into some branches letting those die, rather than killing of the whole tree. When the water is available again, it grows new branches.

The saltwater crocodile has 4 chambers of the heart. It uses 3 normally like other reptiles on the ground, but when it sinks to the bottom, it switches to only 1 chamber.

Thats excellent resource management! And I haven't started about the Kangaroos being able to control the birth process, but then again, we are only human so I'd use the first 2 examples only when crafting the new plan.

Comments

Popular posts from this blog

Multiple Broadlink RM mini 3 integration using MQTT

Broadlink now has quite a lot of integration options almost out of the box. If you enable Broadlink IHC, you can directly link it to Alexa by giving the device a unique name.

There is a homebridge plug in for homekit integration but I haven't tried or tested this. https://lprhodes.github.io/slate/

I wanted to put the device in domoticz so I can have more control over what can trigger my broadlink. I decided to use broadlink-mqtt for this, which is a fairly easy method to trigger from any source.

Setup Instructions for broadlink-mqtt

1. git clone https://github.com/eschava/broadlink-mqtt

2. vi /home/pi/broadlink-mqtt/mqtt.conf

3. Update the mqtt.conf file with the device type set as multiple_lookup

device_type = 'multiple_lookup'
mqtt_multiple_subprefix_format = '{type}_{mac_nic}/'
4. Start the python script and check that it started and detected all the RM devices.
Check the log file to see what the IP / MAC addresses are. DEBUG Connected to RM2 Broadlink device at …

Fibaro HCL Virtual Device Slider

How to setup Fibaro home center lite (HCL) slider for virtual devices.

As the Fibaro HCL does not support LUA. The question was how to update the number value of the slider to send to the HTTP string. Thanks to this site which is a really good reference https://www.vesternet.com/resources/application-notes/apnt-88/

The 2 use cases here are;

Sonos HTTP API Volume

To allow for volume control for all Sonos devices, add a virtual device with the IP address for SONOS HTTP API and specify the default port to 5005. Create Slider and put the following text into the string.

GET /volume/_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A


Domotiz Virtual Devices

GET /json.htm?type=command&param=switchlight&idx=XX&switchcmd=Set%20Level&level=_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A

Replace XX with the device ID.

Restart Fibaro HCL when it stops working automatically

It seems that the Fibaro HCL seems to hang every now and then. Instead of trying to restart it regularly, which doesn't really work, as it's almost impossible to predict when this will happen.

This method checks that the HCL is actually running and in the event it stops working, trigger a script that will restart it.


1. Get a non Fibaro controlled power plug and scripts to control it.

I used a wifi smart plug, TP-link HS100 and downloaded the scripts from

https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/

2. Create a bash script to restart the Fibaro, e.g. restart_fibaro.sh

#!/bin/bash

ip_addr=
scripts=

$scripts/tplink-smartplug.py -t $ip_addr -c off
sleep 10
$scripts/tplink-smartplug.py -t $ip_addr -c on


3. Create a test global variable in the Fibaro HCL

Go to the variables panel and create a test variable, e.g. Test


4. Add a cron entry to test that the Fibaro API is still working and restart if it's not.

The cron script is scheduled ev…