- https://cucumber.io/blog/2015/03/24/single-source-of-truth
- http://stakeholderwhisperer.com/posts/2014/10/introducing-modelling-by-example
- https://dannorth.net/2012/05/31/bdd-is-like-tdd-if/
- https://lizkeogh.com/behaviour-driven-development/
- https://lizkeogh.com/2013/07/01/behavior-driven-development-shallow-and-deep/ - the last section of this sums BDD up really well IMO.
- https://www.youtube.com/watch?v=2EM4itu7j7I
- https://www.youtube.com/watch?v=AFCdE5KSREI
- https://www.youtube.com/watch?v=jINf8_tgjSU
<?php | |
namespace App\Context; | |
use Behat\Behat\Context\Context; | |
use Symfony\Component\Process\Process; | |
class ServerContext implements Context | |
{ | |
const TIMEOUT = 10; |
<?php | |
#if (${NAMESPACE}) | |
namespace ${NAMESPACE}; | |
#end | |
#if (${NAMESPACE} && !${TESTED_NAMESPACE}) | |
use ${TESTED_NAME}; | |
#elseif (${TESTED_NAMESPACE} && ${NAMESPACE} != ${TESTED_NAMESPACE}) | |
use ${TESTED_NAMESPACE}\\${TESTED_NAME}; |
dokku mysql:list | awk '!/NAME/{print $1}' | xargs -I % dokku mysql:info % | awk '/Dsn:/{print $2}' |
# https://github.com/snarky-snark/home-assistant-variables | |
var: | |
media_volume_living_room: | |
friendly_name: "Living Room Media Volume" | |
initial_value: 0 | |
media_volume_matt_office: | |
friendly_name: "Matt Office Media Volume" | |
initial_value: 0 |
import datetime | |
import logging | |
import json | |
import paho.mqtt.client as mqtt # pip3 install paho-mqtt | |
GLOW_LOGIN = "GLOW_LOGIN" | |
GLOW_PASSWORD = "GLOW_PASSWORD" | |
GLOW_DEVICE_ID = "GLOW_DEVICE_ID" | |
# Fields gathered from the ZigBee Smart Energy Standard document |
Here is a way to expose most of the Glow Display MQTT information to home assistant through templates. Please make sure you ask Hildebrand support to enable your account for MQTT access before setting everything up.
The first step is to connect Home Assistant to MQTT. If you don't have your own broker hooked up yet, go ahead and set it up (I would suggest using the Integrations UI) and specify your Glow username and password as well as glowmqtt.energyhive.com
as the server and 8883
as the port to make sure we're establishing a secure SSL connection.
If you already have your own MQTT server hooked up to Home Assistant, like I do, you will have to set up a bridge between your MQTT server and the Glow one, after that your server will mirror the MQTT messages from the Glow server. You have to do this because Home Assistant does not support connecting to more than one MQTT server.
I will assume you are using Mosquitto as an MQTT server. Start by creating a file named `/etc/mo