Skip to main content

Home assistant 433 MHz devices over MQTT.

Project description

Home Assistant 433 MHz devices

Types of devices supported:

  1. Light

Install

$ sudo pip install dvdp.ha-433

Use

1 - Record

First you will have to record your 433 signal.

For help:
$ record_433 -h

Minimal command:
$ sudo record_433 <your_device_name> <ON or OFF>

If you want to specify your recording BCM Pin (default is 15):
$ sudo record_433 <your_device_name> <ON or OFF> -p <PIN_NR>

Simply follow instructions. All recordings are saved to disk. Use --help flag for more info.

2 - Test transmission

If you used the default recordings directory it is quite simple.

First check what recordings are available by using --help:

$ transmit_433 -h 
usage: Transmit signal from recordings.

Recordings available in /usr/local/lib/python3.7/site-packages/dvdp/recordings:
        device: test_device_2, actions: ['ON', 'OFF']
        device: test_device, actions: ['ON', 'OFF']

...

Then select the one you want to test from these recordings:
$ sudo transmit_433 <your_device_name> <ON or OFF>

e.g.:
$ sudo transmit_433 test_device_2 ON

3 - Start MQTT Client for Home assistant

For this to work you will have to install:
Mosquitto broker for Hass.io
https://github.com/home-assistant/hassio-addons/tree/master/mosquitto

To have Home Assistant Hass.io control your devices:
$ ha_433 <BROKER IP>

or if you require a password:
$ ha_433 <BROKER IP> -u <USERNAME> -p <PASSWORD>

For more options please refer to -h

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dvdp.ha_433-0.1.7.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file dvdp.ha_433-0.1.7.tar.gz.

File metadata

  • Download URL: dvdp.ha_433-0.1.7.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for dvdp.ha_433-0.1.7.tar.gz
Algorithm Hash digest
SHA256 31ea57a7940d2648b1cca297c45e2fbca8d31906ab1d9e130fd8e4827f768a8e
MD5 9c1e1c8915a216f022e6239c9dab2cf9
BLAKE2b-256 215fa4924b8d3b1a798c76f0b12c11a669cd2141a428da78d5d51ca37608035e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page