Skip to content

Home automation with micropython, nodemcu and home-assistant

License

Notifications You must be signed in to change notification settings

masarliev/hass_nodemcu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micropython library for nodemcu IOT devices

Used to send/receive mqtt messages and control nodemcu

Example home-assistant configuration

binary_sensor:
  - platform: mqtt
    state_topic: "home/bedroom/pir"
    payload_on: "on"
    payload_off: "off"
    name: "Motion"
    device_class: motion
  - platform: mqtt
    state_topic: "home/bedroom/available"
    payload_on: "on"
    payload_off: "off"
    name: "esp8266"
    device_class: connectivity
switch:
  - platform: mqtt
    name: "Fan"
    command_topic: "home/bedroom/set/fan"
    state_topic: "home/bedroom/fan"
    qos: 1
    retain: true
    payload_on: "on"
    payload_off: "off"

  - platform: mqtt
    name: "Light"
    command_topic: "home/bedroom/set/light"
    state_topic: "home/bedroom/light"
    qos: 1
    retain: true
    payload_on: "on"
    payload_off: "off"
sensor:
  - platform: mqtt
    state_topic: "home/bedroom/temperature"
    name: "Temperature"
    unit_of_measurement: "°C"

  - platform: mqtt
    state_topic: "home/bedroom/humidity"
    name: "Humidity"
    unit_of_measurement: "%"

About

Home automation with micropython, nodemcu and home-assistant

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages