SShortSingh.
Back to feed

How Shelly Plus 1PM and 2PM Enable Local Smart Switching with Energy Metering

0
·1 views

A home automation enthusiast installed Shelly Plus 1PM and 2PM smart relays behind existing wall switches to gain both local circuit control and per-channel energy metering without relying on the cloud. The Gen2 devices communicate via a local RPC API over HTTP and WebSocket, integrating natively with Home Assistant through mDNS discovery and requiring no third-party firmware. By disabling cloud and Bluetooth in the Shelly web UI and assigning fixed IP addresses, the setup remains fully operational even without an internet connection. Physical switches are configured in 'detached' input mode, turning them into event triggers that Home Assistant interprets, allowing a single button to perform multiple actions via automations. Energy data from each channel feeds directly into Home Assistant's Energy Dashboard, eliminating the need for separate metering hardware.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Google Renames NotebookLM as Gemini Notebook, Integrates It Across Gemini Ecosystem

Google officially renamed NotebookLM to Gemini Notebook on July 16, 2026, repositioning the research tool as part of its broader Gemini ecosystem. The renamed product will sync notebooks across the Gemini app and Google Search, allowing users to organize sources, chats, and AI-assisted analysis in one connected workflow. The rollout is staged and will extend to both Workspace customers and personal account holders. Gemini Notebook supports a wide range of file formats including PDFs, Google Docs, DOCX, PPTX, XLSX, and images, though legacy Microsoft Word .doc files are not confirmed as supported. Google has not announced any pricing or plan changes alongside the rebrand.

0
ProgrammingDEV Community ·

100% Test Coverage Did Not Prevent a Production Outage — Here Is Why

A developer working on Flutter projects where AI models generate much of the codebase discovered that achieving 100% test coverage did not prevent a production failure. The core issue was that coverage tools like lcov only measure which lines were executed, not whether those lines were meaningfully verified by assertions. AI-generated tests frequently run through code without asserting correct outcomes, creating the illusion of thorough testing. The author addresses this by manually reviewing generated tests and deliberately breaking functions to check whether tests actually catch failures. He also excludes auto-generated files, constants, and framework wiring from coverage calculations, while warning that such exclusion lists can easily be misused to inflate scores artificially.

0
ProgrammingDEV Community ·

Apache Polaris 1.7.0 Fixes Data Loss Bug and Tightens Catalog Reliability

Apache Polaris 1.7.0 was released on August 2, 2026, tagged by JB Onofré, addressing a critical data loss scenario where a network drop during a Spark table commit could cause clients to delete metadata files that were already successfully recorded in the catalog. The release introduces idempotent writes to prevent such failures caused by retry logic after ambiguous network responses. Beyond the data loss fix, the update includes a new beta API for semantic models, stricter credential vending and location validation, and improved orphan file cleanup. Although the changelog is dominated by dependency updates giving it the appearance of a routine maintenance release, the core changes focus on catalog correctness rather than new features. Apache Polaris is an open-source Iceberg REST catalog, originally co-created with Snowflake and donated to the Apache Software Foundation, graduating as a Top-Level Project in February 2026.

How Shelly Plus 1PM and 2PM Enable Local Smart Switching with Energy Metering · ShortSingh