diff --git a/custom_components/moonraker/manifest.json b/custom_components/moonraker/manifest.json new file mode 100644 index 00000000..89c0a490 --- /dev/null +++ b/custom_components/moonraker/manifest.json @@ -0,0 +1,12 @@ +{ + "domain": "moonraker", + "name": "Moonraker", + "codeowners": ["@marcolivierarsenault", "@cashew22"], + "config_flow": true, + "documentation": "https://moonraker-home-assistant.readthedocs.io/en/latest/", + "iot_class": "local_polling", + "issue_tracker": "https://github.com/marcolivierarsenault/moonraker-home-assistant/issues", + "loggers": ["moonraker"], + "requirements": ["moonraker-api==2.0.6"], + "version": "1.13.4" +} diff --git a/custom_components/moonraker/services.yaml b/custom_components/moonraker/services.yaml new file mode 100644 index 00000000..3058931b --- /dev/null +++ b/custom_components/moonraker/services.yaml @@ -0,0 +1,18 @@ +send_gcode: + name: "Send G-code" + description: "Send a custom G-code command to the printer" + fields: + device_id: + name: "Printer" + description: "Moonraker device that should receive the G-code" + required: true + selector: + device: + integration: moonraker + gcode: + name: "G-code" + description: "G-code command to send to the printer" + required: true + example: "G28" + selector: + text: diff --git a/custom_components/moonraker/translations/en.json b/custom_components/moonraker/translations/en.json new file mode 100644 index 00000000..ad42deb6 --- /dev/null +++ b/custom_components/moonraker/translations/en.json @@ -0,0 +1,38 @@ +{ + "config": { + "step": { + "user": { + "description": "Moonraker connection information", + "data": { + "url": "Host", + "port": "Port", + "tls": "Uses TLS", + "api_key": "API Key (Optional)", + "printer_name": "Printer's Name (Defaults to the hostname)" + } + } + }, + "error": { + "host_error": "Invalid host. Don't include \"http://\", \"https://\", or a trailing slash.", + "port_error": "Invalid port, must be a number between 1 and 65535.", + "api_key_error": "Invalid API key, must be 32 alphanumeric characters.", + "printer_name_error": "Invalid printer name.", + "printer_connection_error": "Failed to connect." + } + }, + "options": { + "step": { + "init": { + "data": { + "polling_rate": "Integration polling rate (s)", + "quiet_unreachable_devices": "Log unreachable printer connection messages only at DEBUG level", + "camera_stream_url": "Camera Stream URL", + "camera_snapshot_url": "Camera Snapshot URL", + "camera_port": "Camera Port", + "thumbnail_port": "Thumbnail Port" + }, + "title": "Configuration" + } + } + } +} diff --git a/custom_components/moonraker/translations/es.json b/custom_components/moonraker/translations/es.json new file mode 100644 index 00000000..d31de011 --- /dev/null +++ b/custom_components/moonraker/translations/es.json @@ -0,0 +1,38 @@ +{ + "config": { + "step": { + "user": { + "description": "Información de conexión de Moonraker", + "data": { + "url": "Servidor", + "port": "Puerto", + "tls": "Usa TLS", + "api_key": "Clave de la API (opcional)", + "printer_name": "Nombre de la impresora (por defecto, el nombre del servidor)" + } + } + }, + "error": { + "host_error": "Servidor no válido. No incluya \"http://\", \"https://\", ni una barra oblicua al final.", + "port_error": "Puerto no válido, debe ser un número entre 1 y 65535.", + "api_key_error": "Clave de la API no válida, debe tener 32 caracteres alfanuméricos.", + "printer_name_error": "Nombre de la impresora no válido.", + "printer_connection_error": "Fallo al conectar." + } + }, + "options": { + "step": { + "init": { + "data": { + "polling_rate": "Tasa de sondeo de la integración (s)", + "quiet_unreachable_devices": "Registrar los mensajes de conexión de impresora inalcanzable solo en nivel DEBUG", + "camera_stream_url": "URL de la transmisión de la cámara", + "camera_snapshot_url": "URL de la instantánea de la cámara", + "camera_port": "Puerto de la cámara", + "thumbnail_port": "Puerto de la miniatura" + }, + "title": "Configuración" + } + } + } +} diff --git a/zigbee2mqtt/state.json b/zigbee2mqtt/state.json index bf579b5e..3ba8afb4 100644 --- a/zigbee2mqtt/state.json +++ b/zigbee2mqtt/state.json @@ -27,7 +27,7 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "power": 1.9, + "power": 2, "current": 0.09, "energy": 54.37, "power_factor": 0.18, @@ -45,10 +45,10 @@ "state": "ON", "led_brightness": 100, "countdown_to_turn_off": 0, - "voltage": 120.2, + "voltage": 120.8, "countdown_to_turn_on": 0, - "energy": 105.01, - "power_factor": 0.2, + "energy": 105.02, + "power_factor": 0.89, "ac_frequency": 60, "update": { "state": "idle", @@ -58,8 +58,8 @@ "latest_release_notes": null }, "linkquality": 145, - "power": 0.2, - "current": 0.01, + "power": 87.8, + "current": 0.83, "power_on_behavior": "on" }, "0xb40e060fffe031e3": { @@ -74,11 +74,11 @@ "led_brightness": 100, "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, - "voltage": 119.3, + "voltage": 119.4, "state": "ON", "ac_frequency": 60, - "energy": 213.12, - "power": 110, + "energy": 213.14, + "power": 109.4, "current": 1, "power_factor": 0.95, "update": { @@ -96,12 +96,12 @@ "countdown_to_turn_off": 0, "countdown_to_turn_on": 0, "voltage": 121.2, - "energy": 101.21, + "energy": 101.22, "state": "ON", - "power": 15.8, - "current": 0.26, + "power": 24.2, + "current": 0.35, "ac_frequency": 60, - "power_factor": 0.53, + "power_factor": 0.55, "update": { "state": "idle", "installed_version": 268513381, @@ -119,7 +119,7 @@ "energy": 14.61, "current": 0.02, "power": 0.1, - "power_factor": 0.11, + "power_factor": 0.2, "linkquality": 116, "update": { "state": "idle",