Domòtica / Home automation
Seccions d'aquesta pàgina 12
01General#
- Home Automation Index
- Cebus
- Universal Plug&Play Forum
- Linux Home Automation
- Home API
- Home Networks
- Inmoclick
- DomoIntel
- Ciberland
- La vivienda inteligente
- emWare
- La casa del futuro
- Arquired
- ATV Informática
- The Internet home (Cisco)
- Conectrónica
- Casadomo
- Metapolis
- Additional Resources: "Smart House Technologies"
- Hogares con electrodomésticos inteligentes (Terra)
02Associacions#
03Comercial / Commercial#
04Empreses / Companies#
- ENeo (TechFoundries)
- Intel Digital Home
- BJC Diálogo
- Operia
05ICT#
- ICT como motor de entrada para la domótica (pdf) (La Salle URL)
06Dispositius / Devices#
- Efergy
- Shelly (es)
- Control remot
- núvol
- xarxa local (Shelly
Pro 4PM web interface guide)
- xarxa WiFi ad-hoc (WiFi AP)
- sempre la mateixa:
- xarxa WiFi (STA) / Ethernet (ETH)
- variable, depèn del servidor DHCP:
- http://x.x.x.x/
- variable, depèn del servidor DHCP:
- xarxa WiFi ad-hoc (WiFi AP)
- GitHub
- ALLTERCO
- home-assistant-libs (Home
Assistant)
- aioshelly (Python)
- ...
- Shelly Cloud
- Devices
- Shelly Pro 4PM
- Shelly
Pro 3EM
- shelly-cli-tools
- Installation guides
- Application guide
- Web interface guides
- Devices
- Integració amb Google Home
- Configuració
- Serveis
- Funciona amb Google
- Shelly Smart Home
- Funciona amb Google
- Serveis
- Configuració
- Relés
- Shelly PRO 4PM (es)
- Shelly Technical Documentation
- Scripts
- Gen
2 Device API
- Devices
- General
- RPC
Protocol
- RPC
basat en JSON-RPC
2.0
- tipus de missatges:
- request / response
- notification
- implementació
- MongooseOS
- cli
- MongooseOS
- tipus de missatges:
- RPC
basat en JSON-RPC
2.0
- RPC Channels
-
url example HTTP POST request with entire frame as payload /rpcexport SHELLY=192.168.1.142
curl -X POST -d '{"id":1,"method":"Shelly.GetStatus"}' http://${SHELLY}/rpcPOST request with args only /rpc/<method_name>curl-X POST -d '{"id":1}' http://${SHELLY}/rpc/Shelly.GetStatusGET with query string /rpc/<method_name>curl-X GET -d '{"id":1}' http://${SHELLY}/rpc/Shelly.GetStatusWebSocket JSON-RPC
/rpcCLI: wscat -c ws://${SHELLY}/rpc {...}- websocat
ws://${SHELLY}/rpc- {"method":"shelly.getstatus","id":0,
"src": "1234"}
- id is needed because a response is expected (JSON-RPC basics)
- "to start receiving notifications over websocket you have to send at least one request frame with a valid source (src);" (src can be any value, usually a uuid)
- {"method":"shelly.getstatus","id":0,
"src": "1234"}
- (JavaScript)
- JSON-RPC over WS (Mongoose)
- websockets
from websockets.sync.client import connect
def get_status():
with connect("ws://192.168.1.142/rpc") as websocket:
websocket.send('{"method":"shelly.getstatus", "id":0, "src":"1234"}')
message = websocket.recv()
print(f"Received: {message}")
get_status()- #
https://stackoverflow.com/questions/55755401/how-to-run-forever-async-websocket-client
import asyncio
import websockets
async def notifications():
async with websockets.connect("ws://192.168.1.142/rpc") as websocket:
await websocket.send('{"method":"shelly.getstatus","id":0,"src":"1234"}')
message = await websocket.recv()
print(f"Received: {message}")
while True:
notification = await websocket.recv()
print(f"Notification: {notification}")
if __name__ == "__main__":
asyncio.get_event_loop().run_until_complete(notifications())
- aioshelly
- python example.py -ip 192.168.1.142 -i
- jsonrpc_websocket
- import
asyncio
from jsonrpc_websocket import Server
async def routine():
server = Server('ws://192.168.1.142/rpc')
try:
await server.ws_connect()
response = await server.shelly.getstatus()
print(response)
finally:
await server.close()
asyncio.get_event_loop().run_until_complete(routine())
- import
asyncio
MQTT
topic for publishing requests <shelly-id>/rpcexport MQTT_SERVER="broker.hivemq.com"
export MQTT_PORT=1883
mosquitto_pub -h ${MQTT_SERVER} -p ${MQTT_PORT} -t shellyplus1-c4dd57877294/rpc \
-m '{"id":123, "src":"user_1", "method":"Switch.Set", "params":{"id":0,"on":true}}'
topic for response <src>/rpcmosquitto_sub -h ${MQTT_SERVER} -p ${MQTT_PORT} -t user_1/rpctopic for notifications <shelly-id>/events/rpcmosquitto_sub -h ${MQTT_SERVER} -p ${MQTT_PORT} -t shellypro4pm-f008d1d8b8b8/events/rpctopic for online status <shelly-id>/online
UDP
mos call --port udp://192.168.11.5:1234/ Shelly.GetStatusAquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
-
- Component
Concept
-
Status <component>.GetStatus
Configuration <component>.GetConfig<component>.SetConfig
Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
-
- Notifications
-
NotifyStatus NotifyEvent Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
-
- Common Errors
-
-103 INVALID ARGUMENT -104 DEADLINE EXCEEDED -108 RESOURCE EXHAUSTED -109 FAILED PRECONDITION -114 UNAVAILABLE Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
-
- Gen1 Compatibility
/shelly
- mDNS
- Zeroconf protocol
- services
_http._tcp_shelly._tcp
- Authentication
- cal activar-la amb: Shelly.SetAuth
- RFC 7616: HTTP Digest Access Authentication
- SSL support for outbound connections
- Sleep management for battery-operated devices
- Debug Logs
- Safe Mode
- RPC
Protocol
- Components
and services
Shelly - Shelly.GetStatus
curl -X POST -d '{"id":1,"method":"Shelly.GetStatus"}' http://${SHELLY}/rpc
- Shelly.GetConfig
curl -X POST -d '{"id":1,"method":"Shelly.GetConfig"}' http://${SHELLY}/rpc
- Shelly.ListMethods
curl -X POST -d '{"id":1,"method":"Shelly.ListMethods"}' http://${SHELLY}/rpc
- Shelly.GetDeviceInfo
curl -X POST -d '{"id":1,"method":"Shelly.GetDeviceInfo"}' http://${SHELLY}/rpccurl http://${SHELLY}/shelly
- ...
Schedule
Webhook
HTTP
KVS
System
WiFi
Ethernet
Bluetooth Low Energy
Cloud
MQTT
Outbound Websocket
Script
Input
Modbus
Voltmeter
Cover
Switch
Light
DevicePower
Humidity
Temperature
EM
EMData
Smoke
Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
- ...
- Shelly.GetStatus
- ...
- ...
- ...
- Control remot
- Plafons / Panels
- SONOFF
- Tuya
- T6E
- S6E
- ...
- Rellotge
- Schneider
- GSM DIN-3
- Modern GSM Control for DIN Rail (Flajzar)
- GSM Communicator GSM-DIN3 230V 2 relays 5A (Pacific GSM)
- Movidomo DIN3
- Philips
Hue
- Techology
- ZigBee
- Philips Hue starter kit
- 3x bombetes hue E27 9W
- 1x bridge
- Preus
- Ciberprecio: 156¤
- Hue developer program
- Techology
- Bosch / Siemens
-
integracions
electrodomèstics app dev HomeAssistant ... Home Connect - rentadora
- rentaplats
Home Connect Developer Program Home Connect
EasyControl - caldera
Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
07Programari / Software#
- Home
Assistant
- Perfect Home Automation
- Maquinari / Hardware
- Plafons / Wall panels
- Instal·lació
- Installation
- Yellow
- http://homeassistant.local:8123/
(http://homeassistant:8123/)
- c... / C...
- comprat: CM4104032 - Raspberry Pi Compute Module 4 - WiFi - 4GB RAM - 32GB Storage
- Programari
- Using
the serial console for debugging (Linux/macOS)
(connexió directa via cable USB-C)
screen /dev/ttyUSB0 115200login: root (no password)ha supervisor logsha network info- reset user password
ha auth listha auth reset --username existing_user --password new_password
- http://homeassistant.local:8123/
(http://homeassistant:8123/)
- Linux
- VM (VirtualBox, Unraid, KVM)
- Problemes / Problems
Error returned from Supervisor: System is not ready with state: setup
- Problemes / Problems
- Docker
docker compose up -d- http://localhost:8123/
- VM (VirtualBox, Unraid, KVM)
- Yellow
- Onboarding
- ...
- Installation
- Configuració / Settings
- Complements
- Terminal & SSH
- Grafana
- Synology
- Easy Control (Bosch: caldera)
- ...
- Home Connect (Bosch, Siemens: rentadora, rentaplats)
- Efergy
- HACS - Home Assistant
Community Store
- Instal·lació en un Yellow (Install
HACS in Home Assistant - 2025 COMPLETE HOW TO
Guide)
- Usuari: Mode avançat
- Instal·leu SSH / Install SSH:
- Configuració > Complements: Terminal
& SSH
- Mostra a la barra lateral
- Configuració > Complements: Terminal
& SSH
- Obriu un Terminal i teclegeu:
wget -O - https://get.hacs.xyz | bash -- s'instal·larà a: /root/config/custom_components/hacs (/root/homeassistant/custom_components/hacs)
- Reinicieu Home Assistant:
- Configuració > Sistema > Botó de
dalt de tot a la dreta
- Reinicia Home Assistant
- Configuració > Sistema > Botó de
dalt de tot a la dreta
- Instal·leu HACS
- Configuració > Dispositius i serveis
> (inferior dreta) Afegeix integració
> Cerca: HACS
- doneu-li permisos per a accedir a un compte vostre a GitHub
- Configuració > Dispositius i serveis
> (inferior dreta) Afegeix integració
> Cerca: HACS
- Ús / Usage
- des del menú de l'esquerra: HACS
- Instal·lació en un Yellow (Install
HACS in Home Assistant - 2025 COMPLETE HOW TO
Guide)
- Historial
- history-explorer-card
- [Under New Management] Interactive history explorer custom card
- Instal·lació / Installation
- (opció 1) Amb HACS (encara no funciona: HACS not working?)
- (opció 2) Instal·lació manual / Manual
install:
- Instal·leu el fitxer js des d'un
terminal SSH (Issue
#38):
cd config/www/communitymkdir history-explorer-cardcd history-explorer-cardwget https://raw.githubusercontent.com/SpangleLabs/history-explorer-card/refs/heads/main/history-explorer-card.js
- Afegiu el recurs:
- Configuració > Panells > (superior dreta) ... > Recursos > (inferior dreta) + Afegeix recurs
- Instal·leu el fitxer js des d'un
terminal SSH (Issue
#38):
- Ús / Usage
- Subtitució de l'Historial
- Override
- ...
- history-explorer-card
- Problemes / Problems
Entitat actualment no disponible: sensor.efergy_us_de_potencia- comproveu el panell web d'Efergy
- s'han acabat les piles del transmissor del comptador d'electricitat?
- RFLink
- MQTT
- Home Assistant también puede entender y decodificar las señales transmitidas por radio. Te mostramos cómo hacerlo sin problemas.
- gateway RF -> MQTT
- OpenMQTT Gateway
- integra rtl_433_ESP
- Compatible devices
- es pot instal·lar en un ESP LoRa, que ja té incorporat un receptor 433MHz
- Comptador d'electricitat
- ESPHome
- Getting Started with ESPHome and Home Assistant
- Use ESPHome with e-ink Displays to blend in with your home decor!
- ...
- ...
- OpenDomo
- Pluto
08Estàndards / Standards#
Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
09Passarel·la / Gateway#
10Xarxa de dades#
11Xarxa de control#
| nom | fundadors | empreses | OSI | bps | suport | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TP | coax | FO | net | PL | RF | IR | ||||||
| X10 | picoElectronics | 50/60 | x | |||||||||
| HES | IEC/ISO JTC1 SC25 WG1 | |||||||||||
| KNX | EIB |
|
1,2,3,4,7 | 9,6k (TP1) | x | x (PL100) | x | x | ||||
| BatiBus |
|
1,2,7 | 4,8k (TP0) | |||||||||
| EHS |
|
1,2,3,7 | TP0: 4,8k, TP1: 9,6k, TP2: 64k |
PL2400: 2,4k (PL132) | RF-1100: 1,1k | IR-1200: 1,2k | ||||||
| CEBus |
|
1,2,3,7 | 7,5k | x | x | x | x | x | x | |||
| Lonworks |
|
|
1,2,3,4,5,6,7 LonTalk | LPT10: 78k, TP1250:1,2M | x | x | x | x | ||||
| BACNet |
|
802.3, ARCNET, LonTalk | ||||||||||
| SCP |
|
|
CEbus (UPnP) | |||||||||
| Echonet | ||||||||||||
| Zigbee | ||||||||||||
Aquesta taula continua cap a la dreta — desplaça-la o gira el mòbil.
12Xarxa multimèdia#
http://www.francescpinyol.cat/domotica.html
Darrera modificació: 16 d'abril de 2025 / Last update: 16th April
2025